Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

Walter Bright newshound2 at digitalmars.com
Sat May 18 21:30:57 PDT 2013


On 5/18/2013 9:06 PM, Jonathan M Davis wrote:
> The closest that there is is
> C++'s references, which aren't rebindable and in many ways act more like
> aliases than pointers.

You can trivially create null references in C++:

int* p = NULL;
int& r = *p;


More information about the Digitalmars-d mailing list