D dropped in favour of C# for PSP emulator

Jonathan M Davis jmdavisProg at gmx.com
Sat May 12 02:37:03 PDT 2012


On Saturday, May 12, 2012 11:26:37 Timon Gehr wrote:
> On 05/12/2012 10:13 AM, Manu wrote:
> > On 11 May 2012 21:28, Mehrdad <wfunction at hotmail.com
> > 
> > <mailto:wfunction at hotmail.com>> wrote:
> >     Yes, I agree, but consider that D users should NOT have to work with
> >     pointers to do something so basic
> > 
> > I'd like to think this were true, but the fact that 'ref' barely works
> > makes this almost immediately false when trying to write any non-trivial
> > program.
> 
> It depends on the coding style.

I rarely end up passing by either ref or pointer, and the only issues that 
I've ever had with ref relate to the fact that you can't pass it rvalues. 
Obviously both pointers and ref have their uses, but I'd definitely have to 
concur that it depends on your coding style and what you're doing. Also, I 
really don't know what's wrong with ref such that anyone could say that it 
"barely works" other than the issues with rvalues and functions which take ref 
or const ref.

- Jonathan M Davis


More information about the Digitalmars-d mailing list