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
30              invokations  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
38              returns  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

KEYWORDS

43       comm, delegation, interpreter, method, snit
44
46       Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
47
48
49
50
51interp                                0.2                      deleg_method(n)
Impressum