Closed Artoria2e5 closed 9 years ago
Additional Header:
readonly true=1 false=0
Usage:
# if bool $p if ((p))
Doing this would limit the safely-accepted ranges from ([01]|t(rue|)|f(alse|)|y(es|)|n(o|)) to (\d*|true|false). This may help clearify some definitions by reducing the possibilities allowed.
The old bool can be kept for reading user input.
This is basically done.
鲁棒性不足
Your implementation suck more.
Additional Header:
Usage:
Doing this would limit the safely-accepted ranges from ([01]|t(rue|)|f(alse|)|y(es|)|n(o|)) to (\d*|true|false). This may help clearify some definitions by reducing the possibilities allowed.
The old bool can be kept for reading user input.