By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

sharing tcl proc's between functions

P: n/a

Is it possible to share some TCL proc's between a set of functions? Something like

proc mything {

proc otherthing {
create function wantsthings (text) returns text as
return [mything [otherthing fubar]]

' language 'pltcl';



This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma******* so that your
message can get through to the mailing list cleanly

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
"Bob Parkinson" <rw*> writes:
Is it possible to share some TCL proc's between a set of functions?

Sure. IIRC all pltcl functions run in a backend share one interpreter
(and pltclu functions share a second one). You might look at the
"pltcl_modules" code as a convenient way of getting things loaded upon
first use:

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.