[Dynamite] Is this working now then?
Ian Holmes
ihh@fruitfly.org
Sun, 5 Mar 2000 11:00:19 -0800 (PST)
On Sat, 4 Mar 2000, Ewan Birney wrote:
> Cool. pf_namespace_Object_method (?)
Um, yeah, it should probably be the same as the "vf_" syntax for virtual
functions, whatever that was.
We need Wiki ;-)
> > > ns_Object_debug_dump(FILE*); provides a debugging info for teh object
> > > (????)
> >
> > This shouldn't be a standard, but most objects will end up having it
> > anyway.
> >
>
>
> I think this should be standard. This is from attempting to debug
> something through a Perl layer - you end wanting to be able to call
> inside Perl a debug function, and be guarenteed to do it on every
> object.
Ok yes I'm convinced. I usually code debugging output anyway but have
never made it a formal requirement before.
I guess an object can always print a useless placeholder message like
"[I am an ArseAdapter object]" if the coder can't be bothered.
Random thought: perhaps the debug dump should return a string, rather than
writing to a file pointer? In C++, I use stream buffers for this kind of
thing (i.e. a string that effectively looks like a file to the caller) so
it is easy to mix & match. Can we think of something equivalent? What is
the IDL mapping for C's FILE*, anyway?
> > > i) use glib for errors.
> >
> > Examples please?
>
> I'll find them. They are easy.
Cool -- thanks.
Ian