Cast to a new type

Tower Ty tytower at yahoo.com.au
Sun Mar 30 15:33:33 PDT 2008


I dont understand casting well. I see the following line in a program

obj[0] = cast(Object) new ArrayWrapperString(data);

Does ArrayWrapperString() exist in the Tango library  (I did not find it) or does this automatically create an instance of new type and create the type too. ?
Where could I read up on this ?



More information about the Digitalmars-d-learn mailing list