True Properties Poll

Rainer Deyke rainerd at eldwood.com
Fri Jul 31 13:31:39 PDT 2009


Jesse Phillips wrote:
>     5. Prevent . on rvalues

Please, "treat rvalues as const".

This is safe:
  int x = f().y;

This is not safe:
  void g(ref int) {}
  g(f());


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list