Binary data in the code?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Nov 4 07:34:55 PST 2006


"Bill Baxter" <wbaxter at gmail.com> wrote in message 
news:eihhpl$1ish$1 at digitaldaemon.com...

> Or live with a dynamic array:
>   static const ubyte[] data = {99,12,2,21};

Actually, if you then write

data.length = 6;

The compiler will complain.

However, getting data.sizeof does still return 8, which is the size of a 
dynamic array reference.. so.. hmm, confusing. 





More information about the Digitalmars-d-learn mailing list