summaryrefslogtreecommitdiffstats
path: root/generic/tclOOScript.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-07-01 16:39:11 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-07-01 16:39:11 (GMT)
commitd11660acfec5e51e088b6e9661d3b6b8e0b1988a (patch)
tree782e4d22dd859468068ba169beeaba9da4136994 /generic/tclOOScript.h
parent5c7ba37901819efd8c30dee373dada97eafdce04 (diff)
downloadtcl-d11660acfec5e51e088b6e9661d3b6b8e0b1988a.zip
tcl-d11660acfec5e51e088b6e9661d3b6b8e0b1988a.tar.gz
tcl-d11660acfec5e51e088b6e9661d3b6b8e0b1988a.tar.bz2
Create a special command, [ :my:class], (in each instance namespace) that allows objects to delegate methods to their class.
Diffstat (limited to 'generic/tclOOScript.h')
-rw-r--r--generic/tclOOScript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclOOScript.h b/generic/tclOOScript.h
index 6dd105e..237bff5 100644
--- a/generic/tclOOScript.h
+++ b/generic/tclOOScript.h
@@ -85,7 +85,7 @@ static const char *tclOOSetupScript =
" ::oo::define [::oo::DelegateName $cls] method $name $args $body\n"
" }\n"
" # Make the connection by forwarding\n"
-" tailcall forward $name [info object namespace $cls]::my $name\n"
+" tailcall forward $name { :my:class} $name\n"
"}\n"
"proc ::oo::MixinClassDelegates {class} {\n"