> On Jul 4, 2017, at 4:39 PM, reilithion <reilith...@gmail.com> wrote:
> 
> I need to somehow forward the srcloc of its use-location.

Look up syntax/loc. You should use it in simple-data to forward the source 
location to mk-data.

> There are going to be a lot of macros like simple-data, and some of them may 
> be written by users, so I'd like to make it as simple as possible to make new 
> ones. I'd rather change mk-data, even if it means making it significantly 
> more complex. What's the best way to accomplish this?

Using syntax/loc is a minimal change to simple data, and it doesn't change 
mk-data at all. Using syntax properties is overkill.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to