dmd casts but ldc doesn't, and doesn't work in template in dmdm

Mike B Johnson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 4 17:18:04 PDT 2017


The following line is causing some problems.


     auto bytes = cast(byte[16])guid;


compiles fine in dmd but ldc says it can't convert... also, it 
doens't work in ctfe/template either. (I'm not sure if ctfe is 
kicking in or not though, but definitely doesn't work in a 
template)




More information about the Digitalmars-d-learn mailing list