casting and arrays..
Chris Warwick
sp at m.me.not
Sat Mar 10 16:36:21 PST 2007
"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message
news:esvhdv$261a$1 at digitalmars.com...
> "Chris Warwick" <sp at m.me.not> wrote in message
> news:esvf5h$2317$1 at digitalmars.com...
>> std.file.read(filename);
>>
>> returns type void[]
>>
>> And it it seems i can cast that to whatever type i like, int[], bool[],
>> ect.. anyway it compiles... but.. when casting between array types like
>> this are runtime checks made to make sure the block being cast has the
>> correct granularity..
>
> Yes.
Cool.. very nice feature.. :-)
More information about the Digitalmars-d-learn
mailing list