On 2009-07-27 04:54:57 -0400, Kagamin <[email protected]> said:

http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP5

As namespaces were proposed, a variant of them is in DIP5 now.

Hum, what's the difference between:

        int width
        {
                private int val;
                int opGet() { return val; }
                int opSet(int newVal) { return val = newVal; }
        }

and

        namespace width
        {
                private int val;
                int opGet() { return val; }
                int opSet(int newVal) { return val = newVal; }
        }

?

I mean, what's the purpose of giving a type to the namespace when you already have a type for the opGet return value?

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to