is this the expected output
Dmitry Olshansky
dmitry.olsh at gmail.com
Thu Dec 23 05:38:10 PST 2010
On 23.12.2010 3:40, g g wrote:
> Thanks for the answers
> what I did is this ( i feel that it is quite clumsy):
>
> Node* x = cast(Node*) (GC.malloc(Node.sizeof));
> *x = xa;
> x.up = curnode;
> ...
which could be improved:
Node* x = new Node(...);//paste your constructor args in place of ...
if Node has a constructor, or just
Node* x = new Node;// if no constructors
--
Dmitry Olshansky
More information about the Digitalmars-d-learn
mailing list