Defining a custom *constructor* (not initializer!)

Steven Schveighoffer schveiguy at yahoo.com
Mon May 7 10:04:08 PDT 2012


On Mon, 07 May 2012 11:57:22 -0400, Mehrdad <wfunction at hotmail.com> wrote:

> On Monday, 7 May 2012 at 10:15:56 UTC, Era Scarecrow wrote:
>>   What is your objective? What are you trying to achieve?
>
> Did you read my first post? I already explained what this would be used  
> for.
>
> Sure, you can do it with factories, but you can't factory-ize "delete",  
> can you?

Not really, but then again, if you are not placing the class into the GC  
heap, who cares?  You have to manually delete anyways, just use your  
specialized 'delete' function instead of delete.

-Steve


More information about the Digitalmars-d mailing list