On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 28.05.2005 um 21:01 schrieb [EMAIL PROTECTED]: > > > I like this but can it be list instead of oneof > > > > ns_proc connect {{-eightbit flag} {{-speed list {1200 2400 4800}} > > 4800} {port /dev/ttya}} > > > > Of course it can. But Stephen is not very optimistic > about the syntax altogether...
Well, the above example is wrong. It should be: ns_proc connect {{{-eightbit flag}} {{-speed list ... Nested lists are clearly unusable. > I'm afraid we do not have very much options about all that. > Either we drop the type checking and therefore accept no > flag-type arguments or similar, or we do something like above > and be faced with more complex writing. The other option is -eightbit:flag syntax. It's not perfect, but it's better than nested lists and has ~5 years of usage in the ACS behind it.