[erlang-questions] [semi-ot] introducing constants and include (that can include erlang code) in efene

Bengt Kleberg bengt.kleberg@REDACTED
Thu Aug 18 09:25:57 CEST 2011


In at least one case (http://www.vitanuova.com/inferno/papers/sh.html,
"Lexical binding") the solution was to add a random string to all
variables. This is not 100% safe but seemed to work.


On Thu, 2011-08-18 at 03:56 +0200, Richard O'Keefe wrote:
> On 17/08/2011, at 11:09 PM, Mariano Guerra wrote:
> >> Concerning hygienic macros, the crucial thing is that identifiers in
> >> the expansion of a macro refer to those visible at its definition
> >> point, unless they come from arguments.  This can be handled by
> >> renaming, which doesn't sound terribly hacky to me.
> > 
> > do you think that something like collecting variable names from the
> > outer contexts and checking if there are collision names and renaming
> > the names that collide is the best way to do it?
> Yes.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list