Will D 2.x have refrences
Bill Baxter
dnewsgroup at billbaxter.com
Thu Oct 11 05:54:20 PDT 2007
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
More information about the Digitalmars-d
mailing list