Overview
| Artifact ID: | 68f8b075a5daf80aeb56ff890cf2181f48b8b970 |
|---|---|
| Ticket: | 558299ffffffffffffffffffffffffffffffffff
restrict use of proc argument named args |
| User & Date: | vincentdarley on 2002-05-20 22:24:53 |
Changes
- icomment:
Logged In: YES user_id=32170 I like Donal's suggestion a lot. Allowing 'args' as a first argument would make it much easier to implement any command that looks like 'cmd ?opts? blah blah'. Given that commands which look like that are the 'Tcl-way', I think it would be a great idea. That would mean we probably want to throw an error for multiple use of 'args' (i.e. proc {args foo args} {...} is an error, but then again _any_ multiple use of the same parameter is most likely an error). My only worry: anyone who has written code using 'args' as a non-final parameter has a reasonable chance that the code might break when this change is made. This represents a mild backwards compatibility issue, but likely only for code written by Tcl-beginners. - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"