Results 1 to 6 of 6

Thread: No sequences of objects in Ice-E?

  1. #1
    bartley is offline Registered User
    Name: Chris Bartley
    Organization: Carnegie Mellon University Robotics Institute
    Project: The Telepresence Robot Kit (TeRK)
    Join Date
    Dec 2005
    Posts
    52

    Question No sequences of objects in Ice-E?

    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:

    Code:
    #ifndef CPB_TEST_ICE
    #define CPB_TEST_ICE
    
    module CPBTest
       {
       class Foo 
          {
          int bar;
          };
    
       sequence<Foo> FooArray;
       };
    
    #endif
    ...gives this error:

    Code:
    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

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    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

  3. #3
    bartley is offline Registered User
    Name: Chris Bartley
    Organization: Carnegie Mellon University Robotics Institute
    Project: The Telepresence Robot Kit (TeRK)
    Join Date
    Dec 2005
    Posts
    52
    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

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    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

  5. #5
    bartley is offline Registered User
    Name: Chris Bartley
    Organization: Carnegie Mellon University Robotics Institute
    Project: The Telepresence Robot Kit (TeRK)
    Join Date
    Dec 2005
    Posts
    52
    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

  6. #6
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Quote Originally Posted by bartley
    Whom should I contact to discuss the feature request more?
    You should direct all questions related to commercial licensing and/or custom development to sales@zeroc.com.

    Thanks,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sequences with slice2cs 3.3.0
    By die_gestalt in forum Help Center
    Replies: 4
    Last Post: 08-14-2008, 12:40 PM
  2. Replies: 1
    Last Post: 04-13-2007, 09:49 PM
  3. Replies: 1
    Last Post: 07-31-2006, 09:35 AM
  4. persistency and Ice objects
    By nsns in forum Help Center
    Replies: 3
    Last Post: 07-19-2004, 08:43 AM
  5. sequences syntax
    By panic in forum Help Center
    Replies: 1
    Last Post: 12-04-2003, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •