enum return type

Frustrated Frustrated at nowhere.com
Wed Mar 5 15:17:44 PST 2014


how does an enum return type work?

enum foo(string s) { return s; }

is it a purely compile time construct?

That is, we can guarantee that foo, as a function, won't exist at 
runtime? e.g., it is a true ctfe instead of a function that can 
be executed at compile time or runtime?


More information about the Digitalmars-d-learn mailing list