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

sasho2sasho2 Member Alex IlievOrganization: Goldman SachsProject: N/A
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

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • sasho2sasho2 Member Alex IlievOrganization: Goldman SachsProject: N/A
    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
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Sorry, but we do not have a concrete release plan for this feature yet.
Sign In or Register to comment.