deleg_proc(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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 the comm channel 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 (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