comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Local procedures and objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Local procedures and objects [message #17535] Sat, 30 October 1999 00:00
Karri Kaksonen is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Local procedures and objects
Next Topic: Does the hide-keyword work?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 16:06:20 PDT 2025

Total time taken to generate the page: 1.28138 seconds