On Wed, Jun 5, 2013 at 10:14 AM, Alan Watson <[email protected]> wrote:

> > Using addresses wouldn't work, generate-unique-value
> > would have to increment a global counter (which need
> > not be unique to this location).  Though if the counter
> > ever overflows into a bignum all optimization is lost.
>
> Sure, just
>
> (define (generate-unique-value) (cons #t #t))
>
> or something similar.
>

Naturally, but then it's faster to just cons up the procedure to begin with.

-- 
Alex
_______________________________________________
Scheme-reports mailing list
[email protected]
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports

Reply via email to