www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Pointer to constructor

reply Toshiaki Takada <toshiaki apakau.com> writes:
Hi Folks,

Quick question, how do I get pointer to a class constructor, let's say
default constructor?  I want to set it to AA, but couldn't find a way.


Oct 29 2014
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
You can access constructors just like any other method if you use 
the __ctor name.

So like &MyClass.__ctor.
Oct 29 2014