[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH] [5] Aggressively reject definitions in exp

From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] [5] Aggressively reject definitions in expression contexts (#1309)
Date: Sat, 11 Feb 2017 15:37:35 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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".


Attachment: 0001-Reject-toplevel-definitions-in-non-toplevel-contexts.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]