Allison Randal wrote:
On Feb 5, 2006, at 3:05, Leopold Toetsch via RT wrote:

... Turning on argument count
checks would prevent such errors.

What's the difference between :optional and :opt_flag? I found a few lines of documentation on these once I knew what to grep for, but that's all.

Seed pdd03. :optional is the argument. :opt_flag is 1/0 if the argument was passed or not.

Marking optional parameters is a good move forward. But... retrieving garbage values into parameters that aren't passed an argument is not a good design for a stable system.

Of course. The plan is to turn on argument/return value count checks on. See some recent discusson on p6i, e.g. "Param count checks" ;)

You can turn it on manually with the errorson opcode too, see t/op/calling.t for examples.

Allison

leo

Reply via email to