[plt-scheme] syntax/loc for synthesized location data

From: Dave Herman (dherman at ccs.neu.edu)
Date: Fri Feb 27 11:18:08 EST 2009

Carl Eastlund wrote:

> I then got different behavior by providing a source other than #f:
> 
>> (define loc2 (datum->syntax #f 'goodbye (list 'here 100 4 4 5)))
>> loc2
> .#<syntax:100:4>
>> (define stx2 (syntax/loc loc2 (list 5 4 3 2 1)))
>> stx2
> .#<syntax:100:4>

Interesting. So do we know whether this is a bug or an undocumented but 
intended invariant? (I'm hoping the former.)

Thanks,
Dave


Posted on the users mailing list.