home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
ada95_disp.tcl
< prev
next >
Wrap
Text File
|
1997-03-24
|
2KB
|
51 lines
###########################################################################
##
## Copyright (c) 1996 by Cadre Technologies Inc.
## and Scientific Toolworks Inc.
##
## This software is furnished under a license and may be used only in
## accordance with the terms of such license and with the inclusion of
## the above copyright notice. This software or any other copies thereof
## may not be provided or otherwise made available to any other person.
## No title to and ownership of the software is hereby transferred.
##
## The information in this software is subject to change without notice
## and should not be construed as a commitment by Cadre Technologies Inc.
## or Scientific Toolworks Inc.
##
###########################################################################
# Pseudo OO programming in Tcl: dispatch functions for "generate",
# "gen_initializer", "gen_class_decl"
proc generate {args} {
set object [lindex $args 0]
trace_call generate $object $args
uplevel "[get_obj_type $object]::generate $args"
}
proc gen_initializer {args} {
set object [lindex $args 0]
trace_call gen_initializer $object $args
uplevel "[get_obj_type $object]::gen_initializer $args"
}
proc gen_class_decl {args} {
set object [lindex $args 0]
trace_call gen_class_decl $object $args
uplevel "[get_obj_type $object]::gen_class_decl $args"
}
proc gen_var_decl {args} {
set object [lindex $args 0]
trace_call gen_var_decl $object $args
uplevel "[get_obj_type $object]::gen_var_decl $args"
}
proc gen_typedef {args} {
set object [lindex $args 0]
trace_call gen_typedef $object $args
uplevel \
"[get_obj_type $object]::[get_multiplicity $object]_typedef $args"
}