"version" private word

Jacob Carlborg doob at me.com
Tue Oct 31 19:36:57 UTC 2017


On 2017-10-31 16:36, Dr. Assembly wrote:

> thanks. I just find it werid, maybe because I came from C/C++ 
> background, where it means only integer types. So enum s = "foo"; is 
> really werid. But I'll get used to it.

Think of it more like #define in C/C++ than "const". The above defines a 
manifest constant that are only available at compile time, i.e. you 
cannot take the address of a manifest constant.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list