Andrei Alexandrescu wrote: > Lionello Lunesu wrote: >> Also, somebody mentioned using 'new' to allocate structs on the heap; >> I've never actually done that, but it sounds like using 'new' would be >> the perfect way to do just that. > > Yah, I guess I'll drop it.
Consistency with structs demands that for a class type 'X', 'new X' allocates a *reference*, not an instance, on the heap. -- Rainer Deyke - [email protected]
