SImple C++ code to D

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 14 05:57:02 PDT 2014


Andrea Fontana:

> Is there any counter-indication with this:
>
> immutable ubyte[5] stub = x"b8 01 4c cd 21".representation;
>
> ?

See:
https://issues.dlang.org/show_bug.cgi?id=10454
https://issues.dlang.org/show_bug.cgi?id=5909


> Is it a compile time value?

Generally you need module-level values or enums to be sure a 
value is compile-time. In this case it is probably not.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list