How do I create a module-local immutable class object?
Jonathan M Davis
jmdavisProg at gmx.com
Sat Sep 10 02:52:57 PDT 2011
On Saturday, September 10, 2011 05:20:51 bearophile wrote:
> > Try to import that class from another module...
>
> I fear this is a D design mistake/corner case. If you add tags to a
> class/struct definition it usually gets applied to all its methods, but
> here it works on the class/struct name itself.
Personally, I think that marking a class with an attribute should only apply
to the class and _nothing_ in it, but it doesn't always seem to work that way.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list