development release newLISP v.9.3.10

Started by Lutz, April 22, 2008, 12:37:01 AM

Previous topic - Next topic

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">http://newlisp.org/download/development



ps: 9.3.9 was an internal milestone and never released

newdep

#1
Hi Lutz,



Thanks, as always, for the release !



A question concerning =>


Quotenow 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..
-- (define? (Cornflakes))