DMD 1.022 and 2.005 releases
BLS
nanali at nospam-wanadoo.fr
Wed Oct 10 09:40:33 PDT 2007
0ffh schrieb:
> 0ffh wrote:
>> //C
>> int value = 100;
>> int *rIntRef = value;
>
> Okay, but only if you don't mind the core dump! =)
>
> //C
> int value = 100;
> int *rIntRef;
> rIntRef = &value;
int value = 100;
int & rIntRef = value;
if (rIntRef == 100)
// be ashured
rIntref = 101
This is why I like refrences, they behave like an alias-name. (and are
Not as dangerous as pointers :)
Thanks Bjoern
More information about the Digitalmars-d-announce
mailing list