Re: [Orbit-python-list] Spec non-compliance re structures
Status: Inactive
Brought to you by:
tack
From: Duncan G. <dg...@uk...> - 2001-10-31 15:06:23
|
On Monday 29 October, Chip Richards wrote: > struct segment > { > long left_limit; > long right_limit; > }; [...] > The form of the constructor I've been using that does seem to work is this: > > s = StruckIF.segment (left_limit=-3, right_limit=7) > > Now, I'm a big fan of keyword parameters, but there are times when > I'd be just as happy using positionals. In fact, the mapping spec _only_ requires the constructor using positional arguments, so an application using keyword arguments is non-portable. The keyword form should be considered an extension. omniORBpy supports keyword arguments, but I think I remember that Fnorb does not. Cheers, Duncan. -- -- Duncan Grisby \ Research Engineer -- -- AT&T Laboratories Cambridge -- -- http://www.uk.research.att.com/~dpg1 -- |