Properties

bearophile bearophileHUGS at lycos.com
Sun Jan 11 10:52:27 PST 2009


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



More information about the Digitalmars-d mailing list