Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2003
Mr.Freeze Mr.Freeze is offline
Registered User
 
 
Join Date: Aug 2003
Location: Germany
Posts: 23
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.
Reply With Quote
  #2 (permalink)  
Old 08-13-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
derived constructor generation bug in slice2cpp bpolivka Bug Reports 3 03-02-2006 09:42 AM
Problem with RequestFailedException constructor documentation bartley Comments 2 02-13-2006 11:45 AM
Identity Constructor acbell Comments 1 08-30-2005 01:34 PM
Passing parameters to constructor jacopo Help Center 2 05-12-2005 12:47 PM
about out parameter simpley Help Center 3 03-18-2004 03:45 PM


All times are GMT -4. The time now is 12:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.