~ubuntu-branches/ubuntu/utopic/critcl/utopic

« back to all changes in this revision

Viewing changes to examples/clist/clist_tcl.tcl

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-05-11 00:08:06 UTC
  • Revision ID: package-import@ubuntu.com-20130511000806-7hq1zc3fnn0gat79
Tags: upstream-3.1.9
ImportĀ upstreamĀ versionĀ 3.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# clist_tcl.tcl --
 
2
#
 
3
#       Tcl companion file to clist. Takes the primitives exported
 
4
#       by the C parts and arranges them into a nice and proper
 
5
#       ensemble command.
 
6
#
 
7
# Copyright (c) 2011 Andreas Kupries <andreas_kupries@users.sourceforge.net>
 
8
 
 
9
# Example of using a Tcl companion file to put a layer of structure
 
10
# (and/or policy) on top of a set of C primitives.
 
11
 
 
12
# # ## ### ##### ######## ############# #####################
 
13
## Requirements.
 
14
 
 
15
# See clist.tcl
 
16
 
 
17
# # ## ### ##### ######## ############# #####################
 
18
## Implementation.
 
19
 
 
20
namespace eval ::clist {
 
21
    namespace export map foldl filter
 
22
    namespace ensemble create
 
23
}
 
24
 
 
25
# ### ### ### ######### ######### #########
 
26
## OK
 
27