On Wednesday, July 11, 2012 23:09:17 Artur Skawina wrote:
> The advantages of having pointers to classes? Eg solving the problem that
> triggered this thread w/o hacks like ClassPtr (Rebindable is an even worse
> hack). [1]

You'd also lose polymorphism, which you don't with Rebindable. In D, 
references are polymorphic. Pointers are not. You really don't want to be 
using a pointer to a class. D was designed with the idea that classes would 
accessed through references, not pointers, and the related features are all 
designed around that.

- Jonathan M Davis

Reply via email to