Abridged summary of comp.lang.tcl@googlegroups.com - 34 updates in 8 topics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Abridged summary of comp.lang.tcl@googlegroups.com - 34 updates in 8 topics

comp.lang.tcl mailing list
heinrichmartin <[hidden email]>: May 04 01:25AM -0700

Hi,
out of curiosity: is there a reason for not accepting barewords as strings in expressions (expr/if).
 
background:
I know of [apply] and [list] to dynamically create commands, but in my ...more
Arjen Markus <[hidden email]>: May 04 01:53AM -0700

On Friday, May 4, 2018 at 10:25:02 AM UTC+2, heinrichmartin wrote:
 
> Using (the string representation of a) [list] guaranties that the body has correct syntax in commands, but not in expressions. ...more
heinrichmartin <[hidden email]>: May 04 02:14AM -0700

On Friday, May 4, 2018 at 10:53:31 AM UTC+2, Arjen Markus wrote:
> But what about: if {{%s} eq ...}
 
I was thinking so, too, but it is not a general solution. This would work only if the canonical ...more
briang <[hidden email]>: May 04 12:49PM -0700

On Friday, May 4, 2018 at 1:25:02 AM UTC-7, heinrichmartin wrote:
 
> Using (the string representation of a) [list] guaranties that the body has correct syntax in commands, but not in expressions. ...more
Christian Gollwitzer <[hidden email]>: May 03 10:38PM +0200

Am 03.05.18 um 21:19 schrieb Busirane:
> (Desktop) 2 % proc tk_popup args {}
> (Desktop) 3 % tk_popup
> (Desktop) 4 %
 
https://www.tcl.tk/man/tcl8.6/TclCmd/library.htm#M8
 
Christian
...more
Busirane <[hidden email]>: May 04 11:13AM -0700

On Thursday, May 3, 2018 at 4:38:45 PM UTC-4, Christian Gollwitzer wrote:
> https://www.tcl.tk/man/tcl8.6/TclCmd/library.htm#M8
 
D'oh! Thanks, Christian.
...more
Cecil Westerhof <[hidden email]>: May 04 12:58PM +0200

In a script I have:
set dummy "Some information"
set index dummy
 
I would like to get the value from the variable where index is
pointing to. In this case index contains dummy, so I would ...more
Harald Oehlmann <[hidden email]>: May 04 01:20PM +0200

Am 04.05.2018 um 12:58 schrieb Cecil Westerhof:
> puts $$index
> gives:
> $dummy
 
set index [set dummy]
...more
Harald Oehlmann <[hidden email]>: May 04 01:25PM +0200

Am 04.05.2018 um 13:20 schrieb Harald Oehlmann:
>> gives:
>> $dummy
 
> set index [set dummy]
 
Sorry,
wrong answer.
 
Here it is:
% set dummy "Some information"
Some information ...more
Cecil Westerhof <[hidden email]>: May 04 01:21PM +0200

> puts $$index
> gives:
> $dummy
 
I found a solution where I could get the value into another variable:
eval "set value $$index"
 
I could use this, but was wondering if there is a ...more
nemethi <[hidden email]>: May 04 01:28PM +0200

Am 04.05.2018 um 12:58 schrieb Cecil Westerhof:
> puts $$index
> gives:
> $dummy
 
Instead of
 
puts $$index
 
you will have to write
 
puts [set $index]
 
-- ...more
Ralf Fassel <[hidden email]>: May 04 01:30PM +0200

* Cecil Westerhof <[hidden email]>
| In a script I have:
| set dummy "Some information"
| set index dummy
 
| I would like to get the value from the variable where index is ...more
Ralf Fassel <[hidden email]>: May 04 01:35PM +0200

* Cecil Westerhof <[hidden email]>
| I found a solution where I could get the value into another variable:
| eval "set value $$index"
 
Don't use 'eval' in this context. It introduces ...more
Rich <[hidden email]>: May 04 12:59PM

> | $dummy
 
> puts [set $index]
 
> See section "Double Indirection" in http://wiki.tcl.tk/1024
 
Also, the OP should take note of the fact that in many instances where
he believes he wants ...more
Cecil Westerhof <[hidden email]>: May 04 03:39PM +0200

> dummy
> % set $index
> Some information
 
That was wat I needed. Works like a charm. Thanks.
 
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof ...more
Cecil Westerhof <[hidden email]>: May 04 03:47PM +0200


> Don't use 'eval' in this context. It introduces data-dependend problems
> if 'index' ever contains something else than a plain variable name.
> Use 'set' as explained in the other messages of ...more
Cecil Westerhof <[hidden email]>: May 04 04:03PM +0200

> dummy
> % set $index
> Some information
 
I played some more with it. Was wondering how to do multilevel
redirection. Do not need it at the moment, but you never know. And it
...more
Rich <[hidden email]>: May 04 02:50PM

> I played some more with it. Was wondering how to do multilevel
> redirection.
 
You'll quickly find the complexity grows exponetionally faster than the
benefits.
 
> set [set $index] ...more
Cecil Westerhof <[hidden email]>: May 04 04:52PM +0200


> I.e., for this example: set index(dummy) "Some information"
 
> And if he wants to pass the "array" in/out of procs without using
> upvar, then use a "dict" instead.
 
That is a good tip. ...more
Cecil Westerhof <[hidden email]>: May 04 05:26PM +0200

>> upvar, then use a "dict" instead.
 
> That is a good tip. Changed the code to work with a dict. Now I have
> to wait until I can test it.
 
I simulated something and that worked. ...more
Rich <[hidden email]>: May 04 03:59PM

>> to wait until I can test it.
 
> I simulated something and that worked. So probably it is OK. Waiting
> till a real situation pops up.
 
Variable indirection is useful, but the low complexity ...more
[hidden email]: May 03 10:11PM -0700

I'm Japanese (intersex) woman who lives ordinary and wants to make friends with you.
If we will be able to get along well, we can become more than just friend.
 
...more
[hidden email]: May 04 05:32AM -0700

looking men for sex tonight
 
...more
[hidden email]: May 03 10:10PM -0700

I'm Japanese (intersex) woman who lives ordinary and wants to make friends with you.
If we will be able to get along well, we can become more than just friend.
 
...more
[hidden email]: May 04 05:31AM -0700

looking men for sex tonight
...more
Harald Oehlmann <[hidden email]>: May 04 01:23PM +0200

Am 20.04.2018 um 18:07 schrieb Ashok:
>> The problematic code is only about the state array of http.
>> It would be ok (for me) to just put nothing into the state array.
 
>> Thanks, Harald
...more
Alexandru <[hidden email]>: May 04 04:33AM -0700

Am Freitag, 4. Mai 2018 13:25:26 UTC+2 schrieb Harald Oehlmann:
 
> Should I jump in ?
 
> Thanks,
> Harald
 
It's not clear to me what should be tested. I use Twapi and autoproxy in the official ...more
Ashok <[hidden email]>: May 04 05:26PM +0530

On 5/4/2018 4:53 PM, Harald Oehlmann wrote:
 
> Should I jump in ?
 
> Thanks,
> Harald
 
I had already tested after Andreas asked and sent him mail. My guess is
he has not seen it. ...more
Alexandru <[hidden email]>: May 04 05:05AM -0700

Am Freitag, 4. Mai 2018 13:33:49 UTC+2 schrieb Alexandru:
 
> > Thanks,
> > Harald
 
> It's not clear to me what should be tested. I use Twapi and autoproxy in the official release of my app which ...more
Harald Oehlmann <[hidden email]>: May 04 02:12PM +0200

Am 04.05.2018 um 13:56 schrieb Ashok:
 
> I had already tested after Andreas asked and sent him mail. My guess is
> he has not seen it. I'll ping him again
 
> /Ashok
 
I suggest to comment the ...more
Harald Oehlmann <[hidden email]>: May 04 02:17PM +0200

Am 04.05.2018 um 14:05 schrieb Alexandru:
>>> Harald
 
>> It's not clear to me what should be tested. I use Twapi and autoproxy in the official release of my app which is also used by our customers. ...more
Alexandru <[hidden email]>: May 04 05:31AM -0700

Am Freitag, 4. Mai 2018 14:19:26 UTC+2 schrieb Harald Oehlmann:
 
> E.g.
> ::autoproxy::Init
> ::autoproxy::configure -username me -password you
 
No it doesn't work because the autentication type ...more
[hidden email]: May 04 04:18AM -0700

Find girls online for sex dating
...more
[hidden email]: May 04 04:17AM -0700

Want married women near me for sex
...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to [hidden email].