I must be missing something here - but are non-positional arguments not permitted on the init proc?<br>A transcript of my attempts below...<br><br>thanks in advance for any help. <br>-shishir<br><br>% Class foo -parameter {{-a "apple"}}
<br>::foo<br>% foo instproc init {{-a "apple"} args} {}<br>% foo f<br>::f<br>% foo f -a "banana"<br>::f: unable to dispatch method 'a' during '::f a'<br>% foo f a "banana"<br>::f<br>% foo instproc init {{-a "apple"} args} { puts "a=$a args=$args" }
<br>% foo f a "banana"<br>a=apple args=a banana<br>::f<br>% foo f -a "banana"<br>::f: unable to dispatch method 'a' during '::f a'<br>% foo instproc init {{a "apple"} args} { puts "a=$a args=$args" }
<br>% foo f a "banana"<br>a=a args=banana<br>::f<br>%<br><br>-- <br>The point of living and of being an optimist, is to be <br>foolish enough to believe the best is yet to come.<br> - Peter Ustinov