const ref rvalues

dsimcha dsimcha at yahoo.com
Mon Dec 14 13:19:16 PST 2009


== Quote from Jason House (jason.james.house at gmail.com)'s article
> If T is a class, I agree it should work. If T is a struct, you'll need a
stronger argument. Maybe scope const ref T would make sense. IMHO, non- scope ref
T for structs is already a questionable practice, and I don't mind the compiler
making that scenario tougher for me.

Since when does scope even have any meaning for structs?



More information about the Digitalmars-d mailing list