User defined attributes use

matovitch camille.brugel at laposte.net
Mon Sep 16 03:29:10 PDT 2013


All your examples are great, thank you ! Is there a way to omit 
validate such that the compiler would call it implicitly ?

For example :

class C {
   ...
}

void fun(@nonNull C c) {
   ...
};

C c;
fun(c);  //compilation error since C is null



More information about the Digitalmars-d-learn mailing list