Hidden argument kind antipattern

Kagamin spam at here.lot
Tue Apr 19 21:37:14 PDT 2011


Vladimir Panteleev Wrote:

> One classic example of this is passing arguments by  
> reference, something D inherited from C++. For example:
> 
> int x, y;
> // ...
> someObject.updateCoords(x, y);
> 
> What can you say about this code?

D IS TEH typesaving language. Go the D way or go away :3


More information about the Digitalmars-d mailing list