1deleg_proc(n) Interpreter utilities deleg_proc(n)
2
3
4
5______________________________________________________________________________
6
8 deleg_proc - Creation of comm delegates (procedures)
9
11 package require Tcl 8.3
12
13 package require interp::delegate::proc ?0.2?
14
15 ::interp::delegate::proc ?-async? name arguments comm id
16
17______________________________________________________________________________
18
20 This package provides a single command for the convenient creation of
21 procedures which delegate the actual work to a remote location via a
22 "channel" created by the package comm.
23
25 ::interp::delegate::proc ?-async? name arguments comm id
26 This commands creates a procedure which is named by name and re‐
27 turns its fully-qualified name. All invokations of this proce‐
28 dure will delegate the actual work to the remote location iden‐
29 tified by the comm channel comm and the endpoint id.
30
31 The name of the remote procedure invoked by the delegator is
32 [namespace tail name]. I.e., namespace information is stripped
33 from the call.
34
35 Normally the generated procedure marshalls the arguments, and
36 returns the result from the remote procedure as its own result.
37 If however the option -async was specified then the generated
38 procedure will not wait for a result and return immediately.
39
41 This document, and the package it describes, will undoubtedly contain
42 bugs and other problems. Please report such in the category interp of
43 the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
44 also report any ideas for enhancements you may have for either package
45 and/or documentation.
46
47 When proposing code changes, please provide unified diffs, i.e the out‐
48 put of diff -u.
49
50 Note further that attachments are strongly preferred over inlined
51 patches. Attachments can be made by going to the Edit form of the
52 ticket immediately after its creation, and then using the left-most
53 button in the secondary navigation bar.
54
56 comm, delegation, interpreter, procedure
57
59 Programming tools
60
62 Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
63
64
65
66
67tcllib 0.2 deleg_proc(n)