references as return value?

BLS nanali at nospam-wanadoo.fr
Wed Oct 17 07:09:40 PDT 2007


coxalan schrieb:
> Hello!
> 
> I looked for the possibility to return references like in C++, but I did not find anything.
> 
> Is it possible to return references in D?

NO

> If yes, how?
> If no, why not?

Very good question

> 
> Thanks!
D 2 will /probabely/ have support for refrences.
Actually you have to use pointers instead.

Bjoern


More information about the Digitalmars-d-learn mailing list