Page 1 of 1

development release newLISP v.9.3.10

Posted: Tue Apr 22, 2008 7:37 am
by Lutz
• changes and bug fixes for the new Cilk interface

• reference parameter passing with context/default functor is now allowed for any built-in function asking for lists or strings

• miscellanous fixes and changes

for files and changes notes: http://newlisp.org/download/development

ps: 9.3.9 was an internal milestone and never released

Posted: Thu Apr 24, 2008 9:27 pm
by newdep
Hi Lutz,

Thanks, as always, for the release !

A question concerning =>
now the default functor as a container for lists or strings can be
used for any built-in function asking for a string or list. Until
now only functons of the special form (... (L idx) ...) could use:
(nth-set (L idx) value) when L:L => '(a b c d)
now any function can take lists or strings packaged this way:
(pop L) => a
or with strings:
(set 'S:S "abcdefg") (upper-case S) => "ABCDEFG"
This means that any user defined function when given a list or string
packed with a default functor will pass this list or string by reference
to any built-in function.

Shouldn't (last S) and (first S) also be working ?
Or do i make a mistake here? Because (0 2 S) and (nth 2 S) do work..