[erlang-questions] Bug ?!

datacompboy <>
Tue Oct 3 06:59:44 CEST 2006

Basically, it's because that expands to element(<field number>, <variable>), and that happens not to be allowed.
(end of quote)

Yes, right, but I just think that compiler can do such:

Var#rec.val -> expands to LambdaVar=element(#rec.val, Var), LambdaVar
so matching possible.
And optimization pass should just remove LambdaVar in cases like
X = Y#recy.xval.

But i'm not sure about optimizations of erlang, so can't say is that possible in current realization
--- suicide proc near\n call death\n suicide endp
Post sent from http://www.trapexit.org

More information about the erlang-questions mailing list