Archived
This forum has been archived. Please start a new discussion on GitHub.
Constructor and Default-Parameter
Hello!
I'm a beginner in using ICE. Here a little code snippet from my class:
class Bank
{
Bank(const string bankname, int contextKey = -1);
int readFromDB(int contextKey = -1);
...
}
How can I create an Ice-Definition, which contains a Constructor and a default parameter within the function call.
Thanks.
I'm a beginner in using ICE. Here a little code snippet from my class:
class Bank
{
Bank(const string bankname, int contextKey = -1);
int readFromDB(int contextKey = -1);
...
}
How can I create an Ice-Definition, which contains a Constructor and a default parameter within the function call.
Thanks.
0
Comments
-
Slice does not support default parameters.
Sice does also not have constructors. Constructors are an implementation detail, and do not belong into a specification language.0