Constructors (starstruck noob from C++)

Ellery Newcomer ellery-newcomer at utulsa.edu
Thu Jan 20 18:02:51 PST 2011


Welcome!

On 01/20/2011 07:18 PM, Luke J. West wrote:
>
> how do I, in c++ speak, do the D for...
>
> A  b(a); // or if you prefer...
> A* b = new A(a);

try

A b = new A(a);

>
> I'm sure this must be trivial.
>
> Many many thanks,
>
> Luke



More information about the Digitalmars-d mailing list