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

comp.lang.tcl mailing list
Cecil Westerhof <[hidden email]>: May 05 02:37PM +0200

Just playing with 'file channels'. I wrote the following program:
#!/usr/bin/env tclsh
 
package require sqlite3
 
puts "Start: [file channels]"
set fileHndl [open ...more
Rich <[hidden email]>: May 05 12:50PM


> After opening a file I see an extra channel as expected. But after
> open the sqlite3 database I do not see an extra channel.
> Why is this?
 
Because the sqlite database is not a Tcl "file ...more
Robert Heller <[hidden email]>: May 05 07:56AM -0500


> After opening a file I see an extra channel as expected. But after
> open the sqlite3 database I do not see an extra channel.
> Why is this?
 
There is no "Tcl Channel" when the database is ...more
Cecil Westerhof <[hidden email]>: May 05 04:26PM +0200

> creat(), fopen(), socket(), etc.), *Tcl* doesn't know about it, unless the
> extension library is specificly using the Tcl_Channel API and exposing a
> channel to Tcl that way.
...more
Cecil Westerhof <[hidden email]>: May 05 04:29PM +0200


> After opening a file I see an extra channel as expected. But after
> open the sqlite3 database I do not see an extra channel.
> Why is this?
 
This problem is solved.
 
But I saw something ...more
Robert Heller <[hidden email]>: May 05 10:28AM -0500

> When the script opens a file it uses file3.
> When I open an interactive shell it opens file5. Otherwise it is the
> same. What could be the reason for this?
 
The number at the end is the fd ...more
Rich <[hidden email]>: May 05 04:49PM

> When the script opens a file it uses file3.
> When I open an interactive shell it opens file5. Otherwise it is the
> same. What could be the reason for this?
 
Don't worry about that.
...more
Cecil Westerhof <[hidden email]>: May 05 07:19PM +0200


> Does it really matter? You really should not be depending on partitular fd#s,
> although fds 0, 1, and 2 are pretty much given as stdin, stdout, and stderr
> for any UNIX / Posix process.
...more
Robert Heller <[hidden email]>: May 05 03:09PM -0500


> Maybe interactively there are two hidden files that are open? Because
> when I keep opening and closing, I keep getting back file5. So it
> looks like file3 and file4 are used for something ...more
"Donal K. Fellows" <[hidden email]>: May 05 11:02AM +0100

On 04/05/2018 11:58, Cecil Westerhof wrote:
> I would like to get the value from the variable where index is
> pointing to.
 
There are three (good) mechanisms that should be mentioned at this ...more
Cecil Westerhof <[hidden email]>: May 05 01:56PM +0200

> puts $myAlias
 
> All of these techniques work reliably without excessive possibility for
> surprise (and can be used together if you've go a need).
 
First went for 1, but gone to a version ...more
[hidden email]: May 04 10:06PM -0700

looking men for one night stand
 
...more
[hidden email]: May 04 10:05PM -0700

looking men for one night stand
 
...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].