A6, parameters

2003-03-19 Thread Ralph Mellor
If one deploys a sub with optional-positional parameters, one can't add a required parameter later without breaking any existing calls that make use of any o-p parameters. Right? A6: An rw parameter may only default to a valid lvalue. If you find yourself wanting it to default to an ordinary

Dynamic scoping

2002-11-23 Thread Ralph Mellor
First, I'd like to confirm I've understood Ctemp and Clet right: 1. Ctemp dynamically scopes changes to a variable's value to the enclosing block. It does not dynamically scope the name. The variable can obviously be a global. It can also make sense if it is lexical. Is the latter

Re: Delegation syntax

2002-10-11 Thread Ralph Mellor
[proposal for delegation syntax, drawing from Class::Delegation] If something is part of the method interface, it ought to be declared as a method. method steer is really(Wheel) is also(???) { .profit!!! } That's tidy, and is sorta on the lines of my own initial thoughts. But afaict