Archived

This forum has been archived. Please start a new discussion on GitHub.

slice function definition

Hi there,
starting from a slice example :

// File example.ice
module Example
{
interface Converter
{
string toUpper(string s);
};
};

is it possible to add a method definition in the slice file ? something like :

// File example.ice
module Example
{
interface Converter
{
string toUpper(string s)
{
thisIsATest(); // ---> is it possible ?
}
};
};

thanks and regards.

Comments

  • xdm
    xdm La Coruña, Spain
    Hi,

    The short answer is no. The Slice language is used to describe the contract between client and servers. Slice language is not used to define implementations.

    Have a look at Ice Manual for more insights The Slice Language - Ice 3.4 - ZeroC