roxen.lists.pike.general

Subject Author Date
答复: Bug when using program as ke 郭雪松zZ x <郭雪松zZ x[at]nirgend> 10-10-2009
 =?utf-8?Q?y_of_mapping?=
Because class A is a single file A.pike, and C2 belong to A, take C2 out and add
a file C2.pike is boring.

-----邮件原件-----
发件人: 'Martin Bähr' [mailto:<mbaehr[at]email.archlab.tuwien.ac.at>] 
发送时间: 2009年10月10日 15:41
收件人: 郭雪松
抄送: <pike[at]roxen.com>; <mast[at]lysator.liu.se>
主题: Re: 答复: 答复: 答复: Bug when using program as key of mapping

On Sat, Oct 10, 2009 at 03:24:20PM +0800, 郭雪松 wrote:
> I want C2 to be a constant inside A.

but why?
you aparently do not want C2 to depend on the context that A provides.

if it is a simple access issue you could probably do:

class C2_ { ... } 
class A 
{
  constant C2 = 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