October 17, 2007 references as return value? | ||||
---|---|---|---|---|
| ||||
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 Re: references as return value? | ||||
---|---|---|---|---|
| ||||
Posted in reply to coxalan | 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 |
Copyright © 1999-2021 by the D Language Foundation