[Dynamite] Is this working now then?
Ian Holmes
ihh@fruitfly.org
Sun, 5 Mar 2000 12:26:07 -0800 (PST)
On Mon, 6 Mar 2000, Ewan Birney wrote:
> Annoying part of CORBA spec -
>
> FILE's are not directly supported so you have to roll your own which
> look like
>
> interface MyReadFile {
> string get_next_line; // undefined length. Yuk.
> };
>
> interface MyWriteFile {
> void write_line(in string);
> };
>
> This drives everyone nuts and people roll their own all over the shop
> (look at the Gnome bonoboo spec for an example of this. If we go for
> file support inside our stuff - this is what we should use).
>
>
> Re: string or FILE -
>
> I settled on FILE because then you can have one dump easily chain
> to the _dumps on its sub-object and everthing work well. Of course
> strings are nicer for the smaller objects, files for the larger
> ones.
OK, this actually soothes my fears...
MyWriteFile is better than string, because MyWriteFile can actually be a
*wrapper* for a string, so both cases are covered. OTOH, a C FILE
structure can't be a wrapper for a string, AFAIK.