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

Home » Public Forums » archive » Important object lesson
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: Important object lesson [message #12139 is a reply to message #12110] Thu, 02 July 1998 00:00 Go to previous messageGo to previous message
mirko_vukovic is currently offline  mirko_vukovic
Messages: 50
Registered: January 1998
Member
In article <6nabkb$p5j$1@clam.niwa.cri.nz>,
"Mark Hadfield" <m.hadfield@niwa.cri.nz> wrote:
>
much deleted
>>> It also suggests a solution (though not a very elegant one): make all
> your
>>> objects subclasses of something, if only a dummy class, and make sure one
> of
>>> the superclasses has explicit Init and Cleanup methods.

I would vote against it. This may only confuse your code and invite errors
further down the line. Faster CPU's are allways around the corner.

>
> Are you suggesting that I am a software fiddler? I'm afraid it's true. I did
> think a while back about having a general class called Object with genreally
> useful behaviours that all my other classes could descend from, as in Java.
> Trouble is, I couldn't think of anything very useful for Object to do and it
> still wouldn't be available for IDL built-in classes. Re the present
Actually I do have a class OBJ which almost any object inherits. It has three
main methods:

pro obj::debug -- just stops and allows the user to examine the object
pro obj::property -- sets a property (but must be completely typed)
function obj::property -- retrieves a property (same restriction as above)

It in addition has a usefull field like self.version, and I hope to add in
a generic ::read and ::write methods for file access (but I have not thought
that one through completely).

oh, and btw, I've generated up to 0.5MO (mega objects) and IDL was performing
fine. These were instances of incorrect cleanups, but I was still glad
nothing got corrupted.

Mirko

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transparent surfaces?
Next Topic: Re: Determining machine endian-ness

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

Current Time: Fri Oct 10 04:26:25 PDT 2025

Total time taken to generate the page: 0.71908 seconds