Hi Christophe,
>> 2) rewrite so that it evaluates its args, then quote the args in
>> my calls to it.
>
> Exactly! I would do:
>
>(de (Lst) # See also "lib/xm.l" and "lib/xml.l"
> ... )
>
> and then provide also a quoting function
>
>(de Lst
> ( Lst) )
>
> giving a convenie
Hi Christophe,
> Even if I did not face this problem, this is counter-intuitive to me.
> I guess that there are serious reasons for this behaviour.
Yes, indeed. It goes down to the core of how Lisp's evaluation mechanism
works. It is not an implementation issue.
If you look in old Lisp textbook
On Tue, Jul 8, 2014 at 10:38 AM, Alexander Burger wrote:
> Hi Christophe,
Hi Alex, thanks for this prompt answer.
>> # In order to call with the default args and then the particular args,
>> # decided to use apply:
>> (apply (quote text text-anchor "middle" font-size 24 x 120 y 99
>
> Yes, thi
Hi Christophe,
> # In order to call with the default args and then the particular args,
> # decided to use apply:
> (apply (quote text text-anchor "middle" font-size 24 x 120 y 99
Yes, this is not possible.
'apply' can only be used for functions which evaluate their arguments
(EXPRs and SUBRs
It seems it was Tomas, not me, who wrote that xml lib. ;-)
/Jon
On 8. Jul, 2014, at 09:49, Christophe Gragnic
wrote:
> Dear list,
> I'm writing an .svg file from Picolisp.
> For this, I'm using the xml lib Jon once started to write, a small lib
> that was enhanced by others:
> https://www.mail
Dear list,
I'm writing an .svg file from Picolisp.
For this, I'm using the xml lib Jon once started to write, a small lib
that was enhanced by others:
https://www.mail-archive.com/picolisp@software-lab.de/msg00510.html
Here is the content of my demo file:
(load "lib/xml.l")
# I have this next li