This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: need SETQ


Ivan Toshkov wrote:

> I think it'll work, though I'm not very experience with macros.
> 
> (define-syntax setq
>   (syntax-rules ()
>   ((setq var value)
>    (begin
>       (set! var value)
>          var))))

Yes, it works in scsh. 

Thank you very much!

--
phm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]