Will D 2.x have refrences

BLS nanali at nospam-wanadoo.fr
Thu Oct 11 07:02:25 PDT 2007


Bill Baxter schrieb:
> BLS wrote:
>> I mean something comparable to :
>> //C++
>> int value = 100;
>> int & rIntRef = value;
>> if (rIntRef == 100)
>>   // be ashured my val is 100
>> rIntref = 101
>> if (&rIntref == &value)
>>   // Yes we have the same address
>>
>> (not parameter passing)
>> Bjoern
> 
> 
> I posted a list of three things that D doesn't have that make life a lot 
> easier in C++.  One of them was returning references from functions. 
> Walter's response was "D will get all of those".   Now it may be a 
> really long time before they come to pass, and Walter may change his 
> mind, but at least at one point he said references would become returnable.
> 
> --bb
Let's hope "we'll get all of those". Unfortunately Walter is comming up 
with surprising new featues all the time... which is nice but, frankly 
said, I would prefer a straight milestone roadmap.

Bjoern



More information about the Digitalmars-d mailing list