Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Gee, Toto, I don't think we're in Kansas anymore.


devel / comp.lang.tcl / Re: tcl oo and forward → nor working as expected

SubjectAuthor
* tcl oo and forward → nor working as expectedAndreas Otto
`* Re: tcl oo and forward → nor working as expecteGerald Lester
 `- Re: tcl oo and forward → nor working as expectedAndreas Otto

1
tcl oo and forward → nor working as expected

<3b144988-eb4f-4610-a7df-cba55ac9b922n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19753&group=comp.lang.tcl#19753

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:5e49:0:b0:31f:1bfe:b906 with SMTP id i9-20020ac85e49000000b0031f1bfeb906mr23050973qtx.18.1660118313011;
Wed, 10 Aug 2022 00:58:33 -0700 (PDT)
X-Received: by 2002:a9d:2a9:0:b0:636:d0e4:5aef with SMTP id
38-20020a9d02a9000000b00636d0e45aefmr6269546otl.384.1660118312739; Wed, 10
Aug 2022 00:58:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 10 Aug 2022 00:58:32 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2003:e6:4f0e:3101:f465:1aff:fea6:5bf4;
posting-account=oKeUZgoAAABgVO2UMIAvLLxFow2tixcl
NNTP-Posting-Host: 2003:e6:4f0e:3101:f465:1aff:fea6:5bf4
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3b144988-eb4f-4610-a7df-cba55ac9b922n@googlegroups.com>
Subject: tcl_oo_and_forward_→_nor_working_as_expected
From: aotto1968zwei@gmail.com (Andreas Otto)
Injection-Date: Wed, 10 Aug 2022 07:58:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3139
 by: Andreas Otto - Wed, 10 Aug 2022 07:58 UTC

Question, why is that not working?

_________________________________________
oo::class create LcConfigC_Rpc {
variable hdl

constructor {rpcSlot} {
oo::objdefine [self] forward rpc $rpcSlot send
puts "object methods = [info object methods [self] -all]"
puts "forward method: rpc = [info object forward [self] rpc]"
puts "test: rpcS send... = [rpcS send "W" LcLogConfigFormatE "C@C" FORMAT_DEFAULT]"
set hdl [rpc LcConfigCreate "@C"]
}
}

# 1. create "rpcS"
ConfigClient create rpcS $rpcF {*}$argv
# 2. wanna create "cfg"
LcConfigC_Rpc create cfg rpcS
==========================================results:
1. "rpc" is a method
object methods = destroy getOptions rpc setIncludeFuncService
2. "rpc" is a forward
forward method: rpc = rpcS send
3. calling "rpcS send..." (the original) is possible
test: rpcS send... = DEFAULT
4. calling "rpc" the forward id NOT possible
invalid command name "rpc"
while executing
"rpc LcConfigCreate "@C""
(class "::LcConfigC_Rpc" constructor line 6)
invoked from within
"LcConfigC_Rpc create cfg rpcS"……

Re: tcl oo and forward → nor working as expected

<td0eug$fm9$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19754&group=comp.lang.tcl#19754

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!DM2N04OOiU2O/TVw7pSvRA.user.46.165.242.75.POSTED!not-for-mail
From: Gerald.Lester@KnG-Consulting.net (Gerald Lester)
Newsgroups: comp.lang.tcl
Subject: Re:_tcl_oo_and_forward_→_nor_working_as_expecte
d
Date: Wed, 10 Aug 2022 09:22:06 -0500
Organization: KnG Consulting, LLC
Message-ID: <td0eug$fm9$1@gioia.aioe.org>
References: <3b144988-eb4f-4610-a7df-cba55ac9b922n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="16073"; posting-host="DM2N04OOiU2O/TVw7pSvRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Gerald Lester - Wed, 10 Aug 2022 14:22 UTC

On 8/10/22 02:58, Andreas Otto wrote:
> Question, why is that not working?
>
> _________________________________________
> oo::class create LcConfigC_Rpc {
> variable hdl
>
> constructor {rpcSlot} {
> oo::objdefine [self] forward rpc $rpcSlot send
> puts "object methods = [info object methods [self] -all]"
> puts "forward method: rpc = [info object forward [self] rpc]"
> puts "test: rpcS send... = [rpcS send "W" LcLogConfigFormatE "C@C" FORMAT_DEFAULT]"
> set hdl [rpc LcConfigCreate "@C"]
> }
> }
>
> # 1. create "rpcS"
> ConfigClient create rpcS $rpcF {*}$argv
> # 2. wanna create "cfg"
> LcConfigC_Rpc create cfg rpcS
> ===========================================
> results:
> 1. "rpc" is a method
> object methods = destroy getOptions rpc setIncludeFuncService
> 2. "rpc" is a forward
> forward method: rpc = rpcS send
> 3. calling "rpcS send..." (the original) is possible
> test: rpcS send... = DEFAULT
> 4. calling "rpc" the forward id NOT possible
> invalid command name "rpc"
> while executing
> "rpc LcConfigCreate "@C""
> (class "::LcConfigC_Rpc" constructor line 6)
> invoked from within
> "LcConfigC_Rpc create cfg rpcS"……

That is what I would expect to see, unless you have a command rpc
defined somewhere.

Per chance did you mean:
set hdl [my rpc LcConfigCreate "@C"]

--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email: Gerald.Lester@kng-consulting.net |
+----------------------------------------------------------------------+

Re: tcl oo and forward → nor working as expected

<f593bf82-c817-4836-81c9-5151c4e7cfe7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19763&group=comp.lang.tcl#19763

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:4509:b0:6b9:9987:ebbf with SMTP id t9-20020a05620a450900b006b99987ebbfmr5028322qkp.304.1660203936090;
Thu, 11 Aug 2022 00:45:36 -0700 (PDT)
X-Received: by 2002:a05:6830:6998:b0:637:12d2:b5d3 with SMTP id
cy24-20020a056830699800b0063712d2b5d3mr3611557otb.321.1660203935861; Thu, 11
Aug 2022 00:45:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 11 Aug 2022 00:45:35 -0700 (PDT)
In-Reply-To: <td0eug$fm9$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:e6:4f0e:3101:f465:1aff:fea6:5bf4;
posting-account=oKeUZgoAAABgVO2UMIAvLLxFow2tixcl
NNTP-Posting-Host: 2003:e6:4f0e:3101:f465:1aff:fea6:5bf4
References: <3b144988-eb4f-4610-a7df-cba55ac9b922n@googlegroups.com> <td0eug$fm9$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f593bf82-c817-4836-81c9-5151c4e7cfe7n@googlegroups.com>
Subject: Re:_tcl_oo_and_forward_→_nor_working_as_expected
From: aotto1968zwei@gmail.com (Andreas Otto)
Injection-Date: Thu, 11 Aug 2022 07:45:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2111
 by: Andreas Otto - Thu, 11 Aug 2022 07:45 UTC

I found the problem, I forget the "my" in front of the "rpc".

Gerald Lester schrieb am Mittwoch, 10. August 2022 um 16:22:19 UTC+2:
> On 8/10/22 02:58, Andreas Otto wrote:
> > Question, why is that not working?
> >
> > _________________________________________
> > oo::class create LcConfigC_Rpc {
>> ...
> > "LcConfigC_Rpc create cfg rpcS"……
> That is what I would expect to see, unless you have a command rpc
> defined somewhere.
>
> Per chance did you mean:
> set hdl [my rpc LcConfigCreate "@C"]
>
>
> --
> +----------------------------------------------------------------------+
> | Gerald W. Lester, President, KNG Consulting LLC |
> | Email: Gerald...@kng-consulting.net |
> +----------------------------------------------------------------------+


devel / comp.lang.tcl / Re: tcl oo and forward → nor working as expected

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor