Re: Referencing values in an array
- From: Daniel Kirsch <Iwillnotread_daniel@xxxxxx>
- Date: Tue, 29 Jul 2008 10:10:16 +0200
Stefan,
thanks a lot for your message and help.
I'm still a bit confused as I'm totally new to TCL and I'm not sure if I understand all your suggestions and how they would make my (actually more complex) application easier or more elegant.
stefan wrote:
2. You seem to devise the shapes array as devise to store MyShape
instances in
an addressable "store". Well, you double your efforts here, that's
what an object system
should do for you. XOTcl does (in many flavours).
Well, I have many Slides each with a lot of shapes (it's a powerpoint import application). So I don't want to have ALL instances of MyShape but only instances of a given slide. This might be doable by defining another identifier for the slide but creating a container holding the references to all instances is the typical way I used to program. There might be better solutions especially in tcl.
btw: What is the difference between "my" and "self"? Does "my" reference the instance and self the current object/methode "self" is in?
Servus nach Wien
Daniel
.
- Follow-Ups:
- Re: Referencing values in an array
- From: stefan
- Re: Referencing values in an array
- References:
- [XOTcl] Referencing values in an array
- From: Daniel Kirsch
- Re: [XOTcl] Referencing values in an array
- From: Daniel Kirsch
- Re: Referencing values in an array
- From: stefan
- [XOTcl] Referencing values in an array
- Prev by Date: Re: tk-shell interactions and return codes
- Next by Date: Re: Referencing values in an array
- Previous by thread: Re: Referencing values in an array
- Next by thread: Re: Referencing values in an array
- Index(es):
Relevant Pages
|