October 17, 2007
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?
If yes, how?
If no, why not?

Thanks!
October 17, 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