On 14.03.2006, at 13:40, Andreas Franke wrote:
Sounds good to me. Because of the compiler warnings about unused
variables, I had adopted the following style for unused variables in
case patterns and procedure parameters:
_/*SomeThing*/
In your proposal, I could just omit the comments and write _SomeThing
instead.
I am in favour for anything which improves the Oz compiler warnings.
Still, what is gained if you are allowed to replace _/*SomeThing*/ by
_SomeThing, in case the latter is equivalent to _?
Kevin Glynn wrote:
- Is '_X' equivalent to writing '_' or is it just a variable name that
bypasses the unused var check (or even is it a variable that is
introduced wthout declaration)?
Similarily, why should there be a distinction between the three cases
_, _X, and X, that is a 'normal' anonymous variable (can always only be
used once and does not require declaration), a 'special' anonymous
variable (can be used multiple times, but the compiler does not warn in
case it is not used after a declaration), and a 'normal' variable
(needs declaration and is usually used then later, otherwise the
compiler warns)?
Best,
Torsten
--
Torsten Anders
Sonic Arts Research Centre
Queen's University Belfast (UK)
www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users