MIT Technology Review: An Interview With Bjarne Stroustrup

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Dec 6 14:18:26 PST 2006


zz wrote:
>         cpp_element* element = new cpp_element();
> 
>         element->CreationDate = cd1 + "cd1";
>         element->Creator      = cd2 + "cd2";
>         element->Label        = cd3 + "cd3";
<snip>
>         d_element element = new d_element();
>         element.CreationDate = cd1 ~= "cd1";
>         element.Creator      = cd2 ~= "cd2";
>         element.Label        = cd3 ~= "cd3";

I don't think those lines are really equivalent. Hint: write the last 
element in the list to output, in both versions. You might notice a 
difference :).



More information about the Digitalmars-d mailing list