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 
Switch to threaded view of this topic 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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 19:18:32 PDT 2025

Total time taken to generate the page: 0.00607 seconds