Home »
Public Forums »
archive »
Local procedures and objects
Local procedures and objects [message #17535] |
Sat, 30 October 1999 00:00 |
Karri Kaksonen
Messages: 27 Registered: October 1999
|
Junior Member |
|
|
If you create two objects thet both have a procedure with the
same name:
complexPlot__define.pro:
pro dummydata
...
histoPlot__define.pro:
pro dummydata
...
gui__define.pro:
function gui::Init,
self.complexPlot = obj_new('complexPlot')
self.histoPlot = obj_new('histoPlot')
Then obviously "pro dummydata" is defined twice and you get
problems.
The interesting part is that the first time you start this
everything appears normal.
The second time you start it you cannot create a new
instance of complexPlot.
help, /heap is empty
retall, reset etc. don't help
It is just impossible to do a o=obj_new('complexPlot')
even from a command line. You just get a null pointer
without any error messages or clues of what goes wrong.
Is there a way to create procedures that are private
to an object? It may be confusing to write private
routines as public methods ( pro complexPlot::dummydata )
--
Regards,
Karri Kaksonen
|
|
|
Current Time: Wed Oct 08 19:18:32 PDT 2025
Total time taken to generate the page: 0.00607 seconds