Results 1 to 4 of 4

Thread: Slice class data members -> private in Java/C++?

  1. #1
    sasho2 is offline Registered User
    Name: Alex Iliev
    Organization: Goldman Sachs
    Project: N/A
    Join Date
    Feb 2007
    Posts
    2

    Slice class data members -> private in Java/C++?

    Hello,

    I'm wondering why data members in a Slice class do not become private members of the generated Java/C++ class. Would it not be useful to at least have that option?

    Cheers

    alex

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    If they are private, how would you access them?

    However, we will probably add a metadata directive, so that they can be made protected. This way, only derived classes can access them.

  3. #3
    sasho2 is offline Registered User
    Name: Alex Iliev
    Organization: Goldman Sachs
    Project: N/A
    Join Date
    Feb 2007
    Posts
    2
    Right, I overlooked that you have to extend the abstract class, so protected is as restricted as you can go.

    Do you know when/what version the meta directive might be in place?

    Thanks!

    alex

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Sorry, but we do not have a concrete release plan for this feature yet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is it possible to map coments from slice >> C#?
    By Gravitas in forum Help Center
    Replies: 2
    Last Post: 03-04-2011, 10:04 AM
  2. Replies: 2
    Last Post: 02-04-2008, 04:17 AM
  3. Replies: 1
    Last Post: 11-29-2007, 07:26 AM
  4. Intializing members of a slice generated class
    By Venkat Seeth in forum Help Center
    Replies: 3
    Last Post: 02-22-2005, 12:31 PM
  5. May slice struct contain class?
    By minifat in forum Help Center
    Replies: 1
    Last Post: 08-09-2004, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •