Re: [orbitcpp-list] Two IDLN enumerations for Any, which one to use
Status: Beta
Brought to you by:
philipd
From: Phil D. <ph...@li...> - 2000-01-17 08:58:00
|
Gordon Miller wrote: > > I've written an extension to the pyIDL to add an IDLTypeAny object and > I've also written a test for it. While writing the test, I discovered > that IDL.h defines two enumerations for Any's IDLN_ANY and > IDLN_TYPE_ANY. Does anyone know the difference? Which one should I be > using? I'm currently using IDLN_TYPE_ANY. > I believe the IDLN_ANY type is for representing actual ANY values, like are used in const declarations: e.g. const Any foo = <VALUE OF ANY>; (or at least that's how it works with IDLN_INTEGER verses IDLN_TYPE_INTEGER). IDLN_TYPE_ANY is (as you correctly assumed) for representing the type, as used in operation signatures etc.. > I'm attaching a diff that was done in the pyIDL directory with my > changes. These should include changes to src/pyIDL, src/test.py, > tests/any.idl, tests/any.py Thanks, I'll mail back once I've looked at it. Cheers, Phil. |