Archived
This forum has been archived. Please start a new discussion on GitHub.
no Slice classes in Ice-E?
From newsletter-5:
"Ice-E is fully interoperable with Ice, with the only exception being Objects-by-Value."
Does it mean that Slice classes can not be used with Ice-E? I want to use classes basically as structures with inheritance, primarily so that I can define generic functions. But I am wondering now whether I would be able to use them with embedded Ice down the road. Here's what i have in mind.
//slice
class BaseClass
{
// data only
};
class MyClass extends BaseClass
{
// data only
};
interface MyInterface
{
MyClass get();
void generic( BaseClass )
};
thanks, alex
"Ice-E is fully interoperable with Ice, with the only exception being Objects-by-Value."
Does it mean that Slice classes can not be used with Ice-E? I want to use classes basically as structures with inheritance, primarily so that I can define generic functions. But I am wondering now whether I would be able to use them with embedded Ice down the road. Here's what i have in mind.
//slice
class BaseClass
{
// data only
};
class MyClass extends BaseClass
{
// data only
};
interface MyInterface
{
MyClass get();
void generic( BaseClass )
};
thanks, alex
0
Comments
-
You won't be able to transmit these classes with Ice-E, you can't transmit classes by value. The Ice-E slice translator allows you to translate classes but you can only use them in the local context.
Benoit.0