Home Help Center

slice function definition

_iLikeIt_iLikeIt Member Onorato VaticoneOrganization: PersonalProject: Evaluation
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

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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
Sign In or Register to comment.