=?utf-8?Q?when_using_program_as_key_of_map?=
=?utf-8?Q?ping?=
I want C2 to be a constant inside A.
-----邮件原件-----
发件人: 'Martin Bähr' [mailto:<mbaehr[at]email.archlab.tuwien.ac.at>]
发送时间: 2009年10月10日 15:09
收件人: 郭雪松
抄送: <pike[at]roxen.com>; <mast[at]lysator.liu.se>
主题: Re: 答复: 答复: Bug when using program as key of mapping
On Sat, Oct 10, 2009 at 02:43:03PM +0800, 郭雪松 wrote:
> 'private' not.
>
> class A {
> int t;
> private class C1 {
> void create()
> {
> t=1; //it's ok
> }
> }
> hide_parent class C2 {
> void create()
> {
> t=1; //throw a error
> }
> }
> }
ahh, you want to lock out access to the outer class.
then why is C2 inside of A at all?
you could write:
class A { ... }
class C2 { ... }
greetings, martin.
--
cooperative communication with sTeam - caudium, pike, roxen and unix
searching contract jobs: programming, training and administration - anywhere
--
pike programmer working in china community.gotpike.org
foresight developer foresightlinux.org open-steam.org
unix sysadmin iaeste.(tuwien.ac|or).at caudium.org
Martin Bähr http://www.iaeste.or.at/~mbaehr/ is.schon.org
|