Nick Sabalausky:
> Yes, but 1. As you indicated, it could only happen in D when using an 
> initializer on an "auto". And 2. I would imagine that would probably get 
> caught as soon x was used.

You are right, Python being dynamically typed the situation is a little worse 
there.


> then using "foo" without "&" or "()" should be 
> prohibited. (In fact, maybe that would be the ideal solution?)

That's what I was saying, to disallow "foo" without () or &. It's not the ideal 
situation but to me it looks better than the current ones (of both Python and 
D1).

Bye,
bearophile

Reply via email to