Abridged summary of comp.lang.tcl@googlegroups.com - 38 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 - 38 updates in 8 topics

comp.lang.tcl mailing list
Cecil Westerhof <[hidden email]>: Jan 04 05:54PM +0100

I am learning to work with tcl. At the moment I am working with a
source file to include generally used functionalities. It would be
better to use package, but that is the next step.
...more
Gerald Lester <[hidden email]>: Jan 04 11:14AM -0600

On 01/04/2018 10:54 AM, Cecil Westerhof wrote:
> error "${::dcblUtilities::utilScriptname} should only be used to include with source"
> }
 
> Is that a good way to do this, or can it ...more
Brad Lanam <[hidden email]>: Jan 04 09:42AM -0800

On Thursday, January 4, 2018 at 8:59:07 AM UTC-8, Cecil Westerhof wrote:
> error "${::dcblUtilities::utilScriptname} should only be used to include with source"
> }
 
...more
Rich <[hidden email]>: Jan 04 06:18PM

> sourced more as once.
> ... snip
> Is that a good way to do this, or can it be improved?
 
Can be much improved. Make it either a package or a module (for
modules see the "tm" man page).
...more
Rich <[hidden email]>: Jan 04 06:22PM

> I am learning to work with tcl. At the moment I am working with a
> source file to include generally used functionalities. It would be
> better to use package, but that is the next step.
...more
Cecil Westerhof <[hidden email]>: Jan 04 07:40PM +0100


>> Is that a good way to do this, or can it be improved?
 
> My first question is, why do you care if it is sourced in more than once
> or run directly?
 
Maybe I am more Catholic than the pope. ...more
Cecil Westerhof <[hidden email]>: Jan 04 08:08PM +0100

>> }
 
>> Is that a good way to do this, or can it be improved?
 
> I think you are re-creating the 'package' functionality.
 
I first need to learn to crawl, before I learn to run. ;-)
...more
Cecil Westerhof <[hidden email]>: Jan 04 08:14PM +0100

>> Is that a good way to do this, or can it be improved?
 
> Can be much improved. Make it either a package or a module (for
> modules see the "tm" man page).
 
I had seen packaging and source, ...more
Cecil Westerhof <[hidden email]>: Jan 04 08:16PM +0100

> But doing so gives you a lot of freedom to name your custom procs
> however you like (and to have namespace specific 'global' data) without
> direct name conflicts with other packages you might ...more
Brad Lanam <[hidden email]>: Jan 04 11:49AM -0800

On Thursday, January 4, 2018 at 11:14:06 AM UTC-8, Cecil Westerhof wrote:
> I first need to learn to crawl, before I learn to run. ;-)
 
Using packages is pretty easy.
At the top of every module ...more
Brad Lanam <[hidden email]>: Jan 04 12:03PM -0800

On Thursday, January 4, 2018 at 11:49:16 AM UTC-8, Brad Lanam wrote:
> set ap [file join [file dirname [info script]]
 
Copy/paste error, that should be:
 
set ap [file dirname [info script]] ...more
Rich <[hidden email]>: Jan 04 08:18PM

> included. This would have a bad influence on performance. But nowadays
> that is probably not a real problem. Instead of generating an error I
> could print a warning.
 
C would complain about ...more
Rich <[hidden email]>: Jan 04 08:19PM

> good one to get into.
 
> I thought package to be a bit to much (at the moment), but it seems
> that module could be an good alternative.
 
Modules are simpler than packages. They are also newer ...more
[hidden email]: Jan 04 03:59AM -0800

Please can someone explains what is the differences between "-data" and "-file" options when creating a bitmap image?, and what is "bitmap program"?
...more
Rich <[hidden email]>: Jan 04 12:23PM

> Please can someone explains what is the differences between "-data"
> and "-file" options when creating a bitmap image?, and what is
> "bitmap program"?
 
Indicating if you have read the manual ...more
[hidden email]: Jan 04 04:56AM -0800

I read the manual but with no exemple I wasn't able to understand the difference between them, I think I have just to specify the image's path in "-file", so what is the utility of "-data" option?
...more
Gerald Lester <[hidden email]>: Jan 04 10:36AM -0600

> I read the manual but with no exemple I wasn't able to understand the difference between them, I think I have just to specify the image's path in "-file", so what is the utility of "-data" option? ...more
[hidden email]: Jan 04 09:57AM -0800

For "-data" option it will be better if its description is like:
Specifies a string whose contents define the source bitmap.
...more
Rich <[hidden email]>: Jan 04 06:02PM

> I read the manual but with no exemple I wasn't able to understand the
> difference between them, I think I have just to specify the image's
> path in "-file", so what is the utility of "-data" ...more
[hidden email]: Jan 04 10:23AM -0800

I am very gratefull for your explanation, thank you very much
...more
[hidden email]: Jan 03 09:06PM -0800

We need to talk about ttk for Tcl 9. CSS for styling widgets. The more, the better, but if it's just setting existing theme stuff with a CSSish kludge, that would work too. But give 10 million ...more
Brad Lanam <[hidden email]>: Jan 04 03:18AM -0800

> We need to talk about ttk for Tcl 9. CSS for styling widgets. The more, the better, but if it's just setting existing theme stuff with a CSSish kludge, that would work too. But give 10 million ...more
Cecil Westerhof <[hidden email]>: Jan 03 11:40PM +0100

I have the following statement:
set topOutput [open "|top -bc -d 5 -n 2"]
 
But when this command gives a line that is longer as 79 characters, it
replaces the line with the first 78 ...more
Rich <[hidden email]>: Jan 03 11:39PM

> it replaces the line with the first 78 characters with a + appended
> to it. Is this normal behaviour? And if so: how can I retrieve the
> complete line?
 
Top is a curses/ncurses based tool. ...more
Brad Lanam <[hidden email]>: Jan 03 04:51PM -0800

On Wednesday, January 3, 2018 at 3:39:09 PM UTC-8, Rich wrote:
> line width, and itself truncating the output for you. Or, it is
> possible that when top detects no terminal, it simply formats for ...more
Cecil Westerhof <[hidden email]>: Jan 04 02:01AM +0100

> line width, and itself truncating the output for you. Or, it is
> possible that when top detects no terminal, it simply formats for 80
> characters wide by default.
 
That was the problem. ...more
Cecil Westerhof <[hidden email]>: Jan 04 02:06AM +0100

> escape sequences.
 
> You would be better off using 'ps'. Modern 'ps' programs have a lot of
> options to display the information you want.
 
The problem is that ps displays information about ...more
Rich <[hidden email]>: Jan 04 04:30AM

> set line [string map { "{" "" "}" "" } ${line}]
> if {[lindex ${line} 0] == "PID"} {
 
> Is this the correct way, or is there a better way?
 
No, not correct. You are passing a ...more
Cecil Westerhof <[hidden email]>: Jan 04 06:32AM +0100


>> Is this the correct way, or is there a better way?
 
> No, not correct. You are passing a string (gets returns strings) to a
> list operator. Never apply list operators (lindex) to string ...more
Arjen Markus <[hidden email]>: Jan 04 12:26AM -0800

On Thursday, January 4, 2018 at 6:44:06 AM UTC+1, Cecil Westerhof wrote:
 
 
> I thought that in tcl everything was a string. ;-)
 
That is true, but you were using an arbitrary string as a list and ...more
Rich <[hidden email]>: Jan 04 10:05AM

>> a list operator. Never apply list operators (lindex) to string
>> values.
 
> I thought that in tcl everything was a string. ;-)
 
Yes. But not every string is a list.
 
You encountered one ...more
Roger Oberholtzer <[hidden email]>: Jan 04 12:19AM -0800

> Does anyone out there have any experience with embedding Tcl toplevel windows in a Qt host window?
 
> Thanks in advance for the help,
 
> AJ
 
This is more a question for the window manager, I ...more
[hidden email]: Jan 03 09:58PM -0800

> if you are seeking women for sex? find here local girls online looking for near me men for sex, romance, flirt, dating, nsa relationship. choose here best dating profile for fuck tonight. ...more
Cecil Westerhof <[hidden email]>: Jan 03 03:14PM +0100


> Both are now running for 44 hours. The first one has used 9 seconds
> CPU time and the second is still standing on zero. So that is a very
> significant difference.
 
They have been running for ...more
[hidden email]: Jan 03 04:08PM -0800

On Wednesday, January 3, 2018 at 5:42:26 AM UTC-5, stefan wrote:
> > It's good to know the tcl team is aware and taking action.
 
> Kind of lame reply, I am aware, but in Tcl, if you were after C's ...more
[hidden email]: Jan 03 04:17PM -0800

On Wednesday, January 3, 2018 at 6:31:37 AM UTC-5, Donal K. Fellows wrote:
 
> are braced[*], as the bytecode sequence will be nearly identical. I
> still think it is good to remove them, just ...more
[hidden email] (Tom Poindexter): Jan 03 09:49PM -0700

In article <[hidden email]>,
>> > It's good to know the tcl team is aware and taking action.
 
>> Kind of lame reply, I am aware, but in Tcl, if you were after ...more
"Donal K. Fellows" <[hidden email]>: Jan 03 11:31AM

> It didn't seem to make much of a difference performance wise.
 
The secondary [expr] calls won't, provided the expressions themselves
are braced[*], as the bytecode sequence will be nearly ...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].