Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Nature always sides with the hidden flaw.


devel / comp.lang.tcl / Re: self in class context for 8.6

SubjectAuthor
* self in class context for 8.6rene
+* Re: self in class context for 8.6YuriyKovalenko
|`- Re: self in class context for 8.6Alan Grunwald
+- Re: self in class context for 8.6greg
`- Re: self in class context for 8.6rene

1
self in class context for 8.6

<c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Forwarded-Encrypted: i=1; AJvYcCVHtiS9OkyFJzBcmwpjcU3o+Sin0DT0juBD2ebiqSBRUWGGhrNRf9tpqSTrFOcnz7x26qKjcGphbWQldG6FKEeG6kDxTxhTkLD3j7U0tRGUlg4=
X-Received: by 2002:a05:6214:27c9:b0:68c:caf2:9e89 with SMTP id ge9-20020a05621427c900b0068ccaf29e89mr20317qvb.8.1707394786812;
Thu, 08 Feb 2024 04:19:46 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCXDST8nqalI7goYyB11S84V32prex8ceYnReL9Ld+gt0+RvhnPH0gOVKeu+bC23C/5ffFVPXAFWs+eICohGDNg2khCZwm1sxcuhrnh/7fgA
X-Received: by 2002:a05:6214:c82:b0:68c:cc8c:b16 with SMTP id
r2-20020a0562140c8200b0068ccc8c0b16mr18135qvr.5.1707394786587; Thu, 08 Feb
2024 04:19:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: Thu, 8 Feb 2024 04:19:46 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=212.243.175.74; posting-account=cY1uRgoAAAD1PpfCHRSABChlMQs7_rU7
NNTP-Posting-Host: 212.243.175.74
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
Subject: self in class context for 8.6
From: r.zaums...@gmail.com (rene)
Injection-Date: Thu, 08 Feb 2024 12:19:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1453
 by: rene - Thu, 8 Feb 2024 12:19 UTC

Hello

Iirc the "self" command (without args) was introduced in 8.7.
In 8.7 I can write oo::class create ::C {puts [self]}
Is there a way to get the class self command in 8.6.

Thank you
Rene

Re: self in class context for 8.6

<652109acb9792689f14f19d7a42a1e4b@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Date: Thu, 8 Feb 2024 13:07:27 +0000
Subject: Re: self in class context for 8.6
From: kyv...@gmail.com (YuriyKovalenko)
Newsgroups: comp.lang.tcl
X-Rslight-Site: $2y$10$Fgkj2VSM8.F8VRj8DofgQOSTNZvqdrlbtXhIwUOb9/7gMJA5wGuPO
X-Rslight-Posting-User: 6be377080909134beda4a875f3984d1898b08b4f
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
Organization: novaBBS
Message-ID: <652109acb9792689f14f19d7a42a1e4b@www.novabbs.com>
 by: YuriyKovalenko - Thu, 8 Feb 2024 13:07 UTC

self exists in 8.6 also. Try
oo::class create ::C {constructor {} {puts [self]}}
or
oo::class create ::D {method foo {} {puts [self]}}

Re: self in class context for 8.6

<uq30f1$21ro6$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam.n...@gmail.com (Alan Grunwald)
Newsgroups: comp.lang.tcl
Subject: Re: self in class context for 8.6
Date: Thu, 8 Feb 2024 16:45:19 +0000
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uq30f1$21ro6$1@dont-email.me>
References: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
<652109acb9792689f14f19d7a42a1e4b@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 16:45:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f71660f2f9f48fe5c70d2d5d43208b30";
logging-data="2158342"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1P17BCQCPPiOtfyOatBljo0JOvhkjhFU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:n1MSWN8RryxRDDpUWmp9FVAEo5g=
Content-Language: en-US
In-Reply-To: <652109acb9792689f14f19d7a42a1e4b@www.novabbs.com>
 by: Alan Grunwald - Thu, 8 Feb 2024 16:45 UTC

On 08/02/2024 13:07, YuriyKovalenko wrote:
> self exists in 8.6 also. Try
> oo::class create ::C {constructor {} {puts [self]}}
> or
> oo::class create ::D {method foo {} {puts [self]}}

As far as I recall, [self] is the same as [self object]. Does [self
object] work, and do what you want/expect in the contexts where [self]
isn't doing the trick?

Re: self in class context for 8.6

<8f81be3d-5da9-4820-aa1a-82056c3c665an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Forwarded-Encrypted: i=1; AJvYcCU+/IA5JtmVKGSPABHYcTMmrDfCzrypx6vbRkG7sR+qMPfJXvQ5v7ACg2UsZbsHZG2aqL8UM06owOjG9MJmjRBFs5MMn/IyyUvq33ibiSWS5aE+
X-Received: by 2002:a05:6214:5191:b0:68c:bada:7cb3 with SMTP id kl17-20020a056214519100b0068cbada7cb3mr28453qvb.0.1707423351811;
Thu, 08 Feb 2024 12:15:51 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCW1U/+MIgAMpJDDhpbbMg5qQAY5W4jHx/czx2v4QuQ0Y6j1f9ajT1l/zIHPztwa9R5xZRBcdfl6OHvlMk2TqOu0DiuPRlNmPra84hBXrL0/
X-Received: by 2002:ac8:5bcb:0:b0:42c:5123:2518 with SMTP id
b11-20020ac85bcb000000b0042c51232518mr12322qtb.8.1707423351395; Thu, 08 Feb
2024 12:15:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 8 Feb 2024 12:15:51 -0800 (PST)
In-Reply-To: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.250.212.88; posting-account=99ziWAoAAADLScDbI_CyfIcpa_gFZ0zh
NNTP-Posting-Host: 185.250.212.88
References: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8f81be3d-5da9-4820-aa1a-82056c3c665an@googlegroups.com>
Subject: Re: self in class context for 8.6
From: gregor.e...@googlemail.com (greg)
Injection-Date: Thu, 08 Feb 2024 20:15:51 +0000
Content-Type: text/plain; charset="UTF-8"
 by: greg - Thu, 8 Feb 2024 20:15 UTC

rene schrieb am Donnerstag, 8. Februar 2024 um 13:19:49 UTC+1:
> Hello
>
> Iirc the "self" command (without args) was introduced in 8.7.
> In 8.7 I can write oo::class create ::C {puts [self]}
> Is there a way to get the class self command in 8.6.
>
> Thank you
> Rene

https://www.tcl.tk/man/tcl8.6/TclCmd/self.html
https://www.tcl.tk/man/tcl8.7/TclCmd/self.html

....
if omitted the result will be the same as if self object was invoked.

Re: self in class context for 8.6

<1bd44a42-c6b9-4908-85de-8e39e30a3a0bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Forwarded-Encrypted: i=1; AJvYcCVo5J+2yo2iqQ9YraEeFICsV9ioeJTeUrK7AS8+o4SFQTY17GtmQ+vrFRnGnTS32c1E3RdLUF2tyPAYNUOjxQxZ7CeQ+LnuXIotvyKYOAGXZqg=
X-Received: by 2002:a05:6214:2602:b0:68c:e95a:b0fb with SMTP id gu2-20020a056214260200b0068ce95ab0fbmr823619qvb.8.1707834075769;
Tue, 13 Feb 2024 06:21:15 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCWGfo415JOHCOWw2cK9u8/QGY28GsatM9Zpl3UXI9s6JeOaWy3eN0zreTqKovQJmKpz7jQfBGc39O4pMKP/iRYQ0KsM562kJJiDofn/eIfm
X-Received: by 2002:a05:6214:19ce:b0:68c:4edd:561c with SMTP id
j14-20020a05621419ce00b0068c4edd561cmr939666qvc.3.1707834075424; Tue, 13 Feb
2024 06:21:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.chmurka.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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: Tue, 13 Feb 2024 06:21:15 -0800 (PST)
In-Reply-To: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=212.243.175.74; posting-account=cY1uRgoAAAD1PpfCHRSABChlMQs7_rU7
NNTP-Posting-Host: 212.243.175.74
References: <c9c064e7-6877-4410-a8c0-9fcf4fe8bf65n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1bd44a42-c6b9-4908-85de-8e39e30a3a0bn@googlegroups.com>
Subject: Re: self in class context for 8.6
From: r.zaums...@gmail.com (rene)
Injection-Date: Tue, 13 Feb 2024 14:21:15 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1475
 by: rene - Tue, 13 Feb 2024 14:21 UTC

Answering myself:

[self] == [lindex [uplevel 1 {info level -1}] 1]

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor