Trass3r <u...@known.com> wrote:

class Foo
{
     int x;
     int y;
     int z;

     mixin NonSerialized!(z);
}

Had a quick look at http://dsource.org/projects/orange/browser/orange/serialization/Serializable.d 1. How come it works without 'mixin' in the template declaration (mixin template NonSerialized)?

Templates are not currently required to be marked as mixin templates in order to be used as such. However, a mixin template can only be instantiated as a mixin.

--
Simen

Reply via email to