[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Extending the io library
- From: "steve donovan" <steve.j.donovan@...>
- Date: Thu, 17 Jul 2008 11:50:40 +0200
On Thu, Jul 17, 2008 at 11:12 AM, Paul Moore <email@example.com> wrote:
> 2. Write a wrapper class which mimics io objects, and use that. That's
> a real pain, as I'm basically reimplementing the io library for a
> couple of minor convenience features.
I can testify to the pain involved here. For my SciTE extensions, I
needed Lua file objects which were connected to the i/o handles of a
captured process. I tried to avoid rewriting by using fdopen, etc, to
give me FILE * handles, but I had weird problems, and ended up copying
a good portion of liolib.c...