View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] Thoughts on dealing with class parameters

From: Kristoffer Lawson <setok_at_scred.com>
Date: Thu, 5 Aug 2010 16:48:48 +0300

One more cheeky idea, which might be too hacky. You can actually check what was used to call a method (see [info frame]). If the dash values were passed as-literals, then handle them as options, otherwise as values. This is probably quite un-Tclish, and possibly confusing, but I believe it is possible.
-- 
Kristoffer Lawson, Co-Founder, Scred // http://www.scred.com/