[Issue 3503] [module] Imports should be static by default
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 15 23:46:53 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3503
Nick Sabalausky <cbkbbejeap at mailinator.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cbkbbejeap at mailinator.com
--- Comment #12 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2009-11-15 23:46:52 PST ---
Another problem with this idea is that the default behavior would kill array
property syntax:
-------
module foo;
void useArray(int[] a) {...}
-------
module main;
import foo;
void main()
{
int a = [1,2,3];
a.useArray(); // Breaks under this proposal
a.foo.useArray(); // Invalid regardless
}
-------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list