[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Comments on draft 6



On Fri 24 Feb 2012 16:23, Jussi Piitulainen <jpiitula@x> writes:

>>   (define t 1)
>>   (define-syntax define-const
>>     (syntax-rules ()
>>       ((_ var val)
>>        (begin
>>          (define t val)
>>          (define (var) t)))))
>>   (define-const foo 2)
>>   t
>> 
> Is it different from the following?
>
> (define t 1)
> (define t 2)
> (define (foo) t)
> t

Yes.  See

  http://thread.gmane.org/gmane.lisp.scheme.reports/304/focus=393

Regards,

Andy
-- 
http://wingolog.org/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports