[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH]  Aggressively reject definitions in exp
Re: [Chicken-hackers] [PATCH]  Aggressively reject definitions in expression contexts (#1309)
Sat, 11 Feb 2017 15:37:35 +0100
On Mon, Dec 12, 2016 at 09:38:17AM +0100, Peter Bex wrote:
> I'll ponder this some more as well.
Here's a very patch which _doesn't_ require macros to know they're
being evaluated at toplevel or not.
It's based on a suggestion by Evan to extend the core language in such
a way that regular set! can be distinguished from a toplevel definition.
The patch itself is about 90% identical to the previous one, because the
compiler's WALK procedure still needs to know if it's at toplevel or not.
I'm a lot happier with this change because the macros don't need to be
changed, and it also means any macro that expands into a call to "define"
will "just work".
Description: Text Data
Description: Digital signature
- Re: [Chicken-hackers] [PATCH]  Aggressively reject definitions in expression contexts (#1309),
Peter Bex <=