1deleg_method(n)              Interpreter utilities             deleg_method(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       deleg_method - Creation of comm delegates (snit methods)
9

SYNOPSIS

11       package require Tcl  8.3
12
13       package require snit  ?1.1?
14
15       package require interp::delegate::method  ?0.2?
16
17       ::interp::delegate::method ?-async? name arguments comm id
18
19______________________________________________________________________________
20

DESCRIPTION

22       This package provides a single command for use within snit type defini‐
23       tion (i.e. actually a snit::macro) for the convenient creation of meth‐
24       ods which delegate the actual work to a remote location via a "channel"
25       created by the package comm.
26

API

28       ::interp::delegate::method ?-async? name arguments comm id
29              This commands creates a method which is named by name.  All  in‐
30              vokations  of  this  method will delegate the actual work to the
31              remote location identified by the comm channel comm and the end‐
32              point id.
33
34              The  name of the remote method invoked by the delegator is iden‐
35              tical to the name of the method itself.
36
37              Normally the generated method marshalls the arguments,  and  re‐
38              turns  the  result  from the remote method as its own result. If
39              however the option  -async  was  specified  then  the  generated
40              method will not wait for a result and return immediately.
41

BUGS, IDEAS, FEEDBACK

43       This  document,  and the package it describes, will undoubtedly contain
44       bugs and other problems.  Please report such in the category interp  of
45       the  Tcllib  Trackers  [http://core.tcl.tk/tcllib/reportlist].   Please
46       also report any ideas for enhancements you may have for either  package
47       and/or documentation.
48
49       When proposing code changes, please provide unified diffs, i.e the out‐
50       put of diff -u.
51
52       Note further that  attachments  are  strongly  preferred  over  inlined
53       patches.  Attachments  can  be  made  by  going to the Edit form of the
54       ticket immediately after its creation, and  then  using  the  left-most
55       button in the secondary navigation bar.
56

KEYWORDS

58       comm, delegation, interpreter, method, snit
59

CATEGORY

61       Programming tools
62
64       Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
65
66
67
68
69tcllib                                0.2                      deleg_method(n)
Impressum