|
|
Choosing A Webhost: |
[ruby-dev:29125] Re: [ BUG ] $0 cannot keep the given string: msg#00206lang.ruby.devel
永井@知能.九工大です. From: nobu@xxxxxxxxxxxxx Subject: [ruby-dev:29124] Re: [ BUG ] $0 cannot keep the given string Date: Mon, 24 Jul 2006 16:58:24 +0900 Message-ID: <200607240758.k6O7wLdj017656@xxxxxxxxxxxxxxxxxxxxxxxx> > 外部に見える必要がなくてスクリプト内部だけの問題であれば、 > ext/extmk.rbのようにaliasで避けることはできます。 > > $progname = $0 > alias $PROGRAM_NAME $0 > alias $0 $progname > > これで、$PROGRAM_NAMEがコマンドラインに対応することになり、$0と > $prognameは普通のグローバル変数になります。 そんな手があったんですね.全く思い至っていませんでした.;;;^_^;;; ありがとうございます. これをベースにさらに ThreadGroup ローカルにできないか考えてみます. -- 永井 秀利 (九工大 知能情報) nagai@xxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ruby-dev:29124] Re: [ BUG ] $0 cannot keep the given string, nobu |
|---|---|
| Next by Date: | [ruby-dev:29126] preview2のprocess.cのrb_proc_timesについて, Yutaka Kanemoto |
| Previous by Thread: | [ruby-dev:29124] Re: [ BUG ] $0 cannot keep the given string, nobu |
| Next by Thread: | [ruby-dev:28979] jcode.rb ruby-1.9, WATANABE Tetsuya |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |