Age | Commit message (Collapse) | Author | Files | Lines |
|
$classname is not accessible, so use [info level 0]
Fixes #248
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now a default constructor is created, as an alias for defaultconstrutor.
The constructor is passed the arguments to new and by default
this accepts a dictionary that is checked for valid instance variables and sets them.
However the constructor can be replaced by one that takes arbitrary arguments.
Thus we can how have:
a new -optiona -optionb
And the constructor is invoked with arguments '-optiona -optionab'.
This makes object initialisation more flexible.
** Note: This is an incompatible change if you have classes with a constructor
and you create object instances with new <dict>.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Documentation fixes -
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
In case the class is created with a namespace name
Fixes #193
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Need to find the baseclass based on the current method class,
not based on the object class.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
An implicit concat was being done on the arguments to 'super', so
arguments containing spaces were mangled.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
https://github.com/msteveb/jimtcl/issues/148
|
|
Methods inherited from a base class are created with alias, so
they are not returned by 'info procs'. Need to use 'info commands' instead.
|
|
- Added support for constructor, runs on new object creation
- Added support for "unknown" method
- Rename some dispatch variables (add double underscore) to avoid collision with user variables
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
So fix oo.tcl when falling back to base class methods
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
...over baseclass vars.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And document the OO extension in README.oo
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|