deleg_proc(n)
π deleg_proc(n) β Interpreter utilities π
okay bestie, welcome to the deleg_proc page, you're gonna eat this one up fr fr β¨
πΈ NAME πΈ
deleg_proc β Creation of comm delegates (procedures)
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
package require interp::delegate::proc ?0.3?
::interp::delegate::proc ?-async? name arguments comm id
π¦ DESCRIPTION π¦
This package is literally just one command, and its whole personality is making procedures for you that hand the actual work off to a remote location. Like, the vibes go through a "channel" that the package comm made. That's it, that's the plot π
π API π
::interp::delegate::proc ?-async? name arguments comm idβ bestie this command creates a procedure, and the procedure is named by name, and it gives you back its fully-qualified name. Every single time you invoke that procedure, it delegates the actual work to the remote location β which is identified by thecommchannel comm and the endpoint id. no cap.
The name of the remote procedure that the delegator invokes is [namespace tail name]. iykyk β that means all the namespace info gets stripped right off the call. gone. βοΈ
So normally, the generated procedure marshalls the arguments and then returns the result from the remote procedure as its own result. cute, right? BUT β if you specified the -async option, the generated procedure is not gonna wait around for a result. it returns immediately. main character energy, no waiting in line π
π«Ά BUGS, IDEAS, FEEDBACK π«Ά
ngl this document, and the package it describes, will undoubtedly contain bugs and other problems. like, obviously. π Please report those in the category interp of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. Also please report any ideas for enhancements you may have for either the package and/or the documentation, we want them fr fr.
When you're proposing code changes, please provide unified diffs, i.e. the output of diff -u.
Also note: attachments are strongly preferred over inlined patches. π You can make attachments by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. slay.
π KEYWORDS π
comm, delegation, interpreter, procedure
β CATEGORY β
Programming tools
π COPYRIGHT π
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
okay that's the whole page bestie, go forth and delegate β¨
and that's a wrap on tcllib version 0.3, dated deleg_proc(n) β mwah, take care of her πππ¦
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- Copyright (c) 2006 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms