Deprecated argument names

bearophile bearophileHUGS at lycos.com
Tue Mar 8 10:11:12 PST 2011


spir:

>I read 2-3 times Walter thinks warnings are bad. Things are either correct, or not.<

D compiler has the "-d" switch that allows deprecated features.

The old name becomes an alias of the true argument name when the "-d" is used... but maybe a less blunt  switch is better.

auto somefunction(@deprecatedName(x) int y) { ...

Bye,
bearophile


More information about the Digitalmars-d mailing list