Re: More on IDL

Pedro Szekely ([email protected])
Fri, 16 Dec 1994 10:19:12 PST

JK,

>
>
> Using
>
> guide() to get the value of the attribute "guide", and
> guide(v) to set the value of the attribute "guide" may
>
> be unavoidable for the following reason. The C++ code that is generated
> uses this convention and I am not sure if the standard will dictate
> things are this level. So, for consistency sake, we could use the same
> standard.
>

You are right. No choice here, so will use the convention dictated by CORBA.
Ie., the get and the set method are called the same. Yuk, but such is life.

> As for type names, and member functions, if we would like to
> be different from Amulet, then we could use the smalltalk convention,
> i.e. type names begin with caps, and member functions begin with smalls.
> Also, since Amulet uses underscores, we probably have to avoid using
> underscores. Any opinions on this?
>

I don't like the SmallTaLk convention very much. thisLooksFunny,
this_looks_less_funny. Amulet uses underscores, but the method names are
capitalized.

> As for the standard C++ classes, I think we can use LEDA. We
> have used LEDA for a while, and haven't had much problems with it. I
> don't like the idea of implementing our own library because there
> are people who do it better. One thing which we will have to consider
> here, is that there is some work in terms of standardizing the C++
> library (similar to libc.a). The standard aims at specifying a set of
> standard classes, and a standard interface to them. So, how independent
> should we remain from a particular implementation?
>

I don't know what to do here. What can we do to stay independent of
particular implementations? Is there already a published proposal for what
the standard classes will be and what their interface will look like?

If there is, we could build our own collection classes as wrappers of LEDA
classes that we want to use. We probably won't use many so this wouldn't be
too much work. Also, if the standard catches on, I assume the LEDA
implementors will come up with collection classes that use the standard
interface.

Pedro Szekely
USC/ISI, 4676 Admiralty Way, Marina del Rey, CA 90292
Phone: 310/822-1511, Fax: 310/823-6714
URL: http://www.isi.edu/isd/HUMANOID-HOME.html