Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You are dishonest, but never to the point of hurting a friend.


comp / comp.lang.tcl / Re: question to package nsf/nx

SubjectAuthor
* question to package nsf/nxManfred Stelzhammer
`- Re: question to package nsf/nxStefan Sobernig

1
Subject: question to package nsf/nx
From: Manfred Stelzhammer
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 08:42 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manfred@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: question to package nsf/nx
Date: Fri, 13 Dec 2024 09:42:41 +0100
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <vjgs21$3a9uv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Dec 2024 09:42:41 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f086646dba4c5a236f0143612c1b52de";
logging-data="3483615"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QqMJOeuYHepDvb684fd1r4rpP02ReL/c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZVCorVXlxQRZScGqaMfbMsjoric=
Content-Language: en-US
View all headers

Hi

#####script start

nx::Class create myClass -superclass nx::Class {
:object property "nix default"
:method init {} {
:property "nix [[:info class] cget -nix]"
}
}

myClass copy myClass2

myClass2 create Class2 {
:property "nix [[:info class] cget -nix]"
}

Class2 create obj2
puts "nix = [obj2 cget -nix]"

##### end

This script run like expected.
I get "nix = default"

If I add:
#### add

myClass copy myClass3
myClass3 configure -nix "nixclass3"

myClass3 create Class3 {
:property "nix [[:info class] cget -nix]"
}

Class3 create obj3
puts "nix = [obj3 cget -nix] "

#### add end

I get an error "Class3: unable to dispatch method 'property'"

####workaround

myClass configure -nix "nixclass3"
myClass copy myClass3

myClass3 create Class3 {
:property "nix [[:info class] cget -nix]"
}

Class3 create obj3
puts "nix = [obj3 cget -nix] "

#### workaround end

Now I get "nix = nixclass3"

If I configure "-nix" in the baseclass "myClass" and copy this class it
works.
If I copy the baseclass "myClass" and configure "-nix" I get an error.

Is this a normal behavior?

regards

Manfred

Subject: Re: question to package nsf/nx
From: Stefan Sobernig
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 4 Jan 2025 08:45 UTC
References: 1
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: stefan.sobernig@wu.ac.at (Stefan Sobernig)
Newsgroups: comp.lang.tcl
Subject: Re: question to package nsf/nx
Date: Sat, 4 Jan 2025 09:45:15 +0100
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <486c48e6-47e3-4739-bc18-7ac8ad2d8a6b@wu.ac.at>
References: <vjgs21$3a9uv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 04 Jan 2025 09:45:16 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8855734d1f54968a92b0d84026c76b13";
logging-data="422467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bJicJ+/aDVSBBKG9xIlAZLQwTETfNKqg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nplBSLlAz3fic6fmjXwjtLEPtTw=
Content-Language: en-GB
In-Reply-To: <vjgs21$3a9uv$1@dont-email.me>
View all headers

Hi Manfred!

We confirm, this is a defect. We are on it and we will report back.

Sry for the late reply.

Best, Stefan

> Hi
>
> #####script start
>
> nx::Class create myClass -superclass nx::Class {
>        :object property "nix default"
>         :method init {} {
>     :property "nix [[:info class] cget -nix]"
>     }
> }
>
> myClass copy myClass2
>
> myClass2 create Class2  {
>     :property "nix [[:info class] cget -nix]"
> }
>
> Class2 create obj2
> puts "nix = [obj2 cget -nix]"
>
> ##### end
>
> This script run like expected.
> I get "nix = default"
>
> If I add:
> #### add
>
> myClass copy myClass3
> myClass3 configure -nix "nixclass3"
>
> myClass3 create Class3 {
>     :property "nix [[:info class] cget -nix]"
> }
>
> Class3 create obj3
> puts "nix = [obj3 cget -nix] "
>
> #### add end
>
> I get an error "Class3: unable to dispatch method 'property'"
>
>
> ####workaround
>
> myClass configure -nix "nixclass3"
> myClass copy myClass3
>
> myClass3 create Class3 {
>     :property "nix [[:info class] cget -nix]"
> }
>
> Class3 create obj3
> puts "nix = [obj3 cget -nix] "
>
> #### workaround end
>
> Now I get "nix = nixclass3"
>
>
> If I configure "-nix" in the baseclass "myClass" and copy this class it
> works.
> If I copy the baseclass "myClass" and configure "-nix" I get an error.
>
> Is this a normal behavior?
>
>
> regards
>
> Manfred
>
>
>

1

rocksolid light 0.9.8
clearnet tor