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

Home » Public Forums » archive » Re: Object style guide
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object style guide [message #17736 is a reply to message #17731] Fri, 12 November 1999 00:00 Go to previous message
Karri Kaksonen is currently offline  Karri Kaksonen
Messages: 27
Registered: October 1999
Junior Member
Nice idea. While you are making the template you could also
catch the errors in the init-block:

function init...
CATCH, Error_Status
;Error_Status = 0
if (Error_Status ne 0) then begin
;if (obj_valid(self.complexPlotFont)) then $
; obj_destroy, self.complexPlotFont
return, 0
endif

;if (self->IDLgrModel::init(_REF_EXTRA=extra) ne 1) then return, 0
...
end

If you are creating objects for a display then you usually
encapsulate everything in a model:

pro %NAME%__define
%NAME% = {%NAME%, $
;INHERITS IDLgrModel, $
...
end

--
Karri Kaksonen
Picker Nordstar
[Message index]
 
Read Message
Read Message
Previous Topic: Conversions among datums and geographic coordinates
Next Topic: Re: TRIANGULATE says "Points are co-linear, no solution"

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

Current Time: Fri Oct 10 23:48:10 PDT 2025

Total time taken to generate the page: 1.01418 seconds