Home Help Center

No sequences of objects in Ice-E?

bartleybartley Member Chris BartleyOrganization: Carnegie Mellon University Robotics InstituteProject: The Telepresence Robot Kit (TeRK) ✭✭
Is it not possible to have sequences of objects in Ice-E? Or am I just doing something wrong? For example, attempting to compile the following Slice code:
#ifndef CPB_TEST_ICE
#define CPB_TEST_ICE

module CPBTest
   {
   class Foo 
      {
      int bar;
      };

   sequence<Foo> FooArray;
   };

#endif

...gives this error:
Test.ice:8: Sequence `FooArray' cannot contain object values.

However, if I change Foo to a struct, then everything works fine. Is this normal? I couldn't find any mention of this restriction in the Ice-E README.

Many thanks,

chris

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    Hi,

    Ice-E does not support the the transmission of Objects by value and as a result sequences of Objects are also not allowed.

    Regards,
    Dwayne
  • bartleybartley Member Chris BartleyOrganization: Carnegie Mellon University Robotics InstituteProject: The Telepresence Robot Kit (TeRK) ✭✭
    Ice-E does not support the the transmission of Objects by value and as a result sequences of Objects are also not allowed.

    Bummer. I was aware of pass-by-value for classes not being supported, but since, according to the README, "it is still possible to use Slice classes in a local context", I figured a sequence of classes in a local context might be allowed. I'd suggest adding something to the README to make this additional restriction clearer.

    Are there any plans to change Ice-E to allow pass-by-value for classes someday?

    thanks,

    chris
  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    Hi,

    I agree, we probably should allow the use of sequences of Objects in Slice as long as they are not being used over-the-wire. We will look into that.

    There are no plans to readding passing objects by value to Ice-E, unless of course it is requested by a commercial customer. Even then though it would probably be as a custom version of Ice-E specific to that customer.

    Regards,
    Dwayne
  • bartleybartley Member Chris BartleyOrganization: Carnegie Mellon University Robotics InstituteProject: The Telepresence Robot Kit (TeRK) ✭✭
    There are no plans to readding passing objects by value to Ice-E, unless of course it is requested by a commercial customer. Even then though it would probably be as a custom version of Ice-E specific to that customer.

    Do you have a ballpark guess for how hard this would be? That is, days or months? We have, or will have soon, a commercial license (my boss has been working out the details with Marc) and it might be something we'd like to consider. Whom should I contact to discuss the feature request more?

    thanks,

    chris
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    bartley wrote:
    Whom should I contact to discuss the feature request more?

    You should direct all questions related to commercial licensing and/or custom development to [email protected].

    Thanks,
    Bernard
Sign In or Register to comment.