[Ecls-list] Problem building from git
Gabriel Dos Reis
gdr at integrable-solutions.net
Fri Feb 6 21:57:47 UTC 2009
On Fri, Feb 6, 2009 at 11:45 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> On Tue, Feb 3, 2009 at 12:24 PM, Geo Carncross <geocar at gmail.com> wrote:
>>> My personal inclination would be to use a union of void* and int,
>>> and select the appropriate field, thereby not depending on any
>>> implementation defined assumption at all. That also would
>>> make the intent clearer.
>> I agree, but it seems like a lot of the stdio code is getting ripped out in
>> favor of posixish reads and writes which means it might really become an int
>> soon :)
> I will probably end up using the union. The introduction of POSIX
> open/close/read/write instead of Ansi fopen/fclose/fread/fwrite is
> here to stay, but it is not going to replace the latter.
> The reasons are multiple and have to do with 1) buffering and 2)
> thread safety. If we go with POSIX files we would have to completely
> reimplement both things, while Ansi streams are pretty good at doing
> that already. OTOH, by having POSIX files anyone who cares about raw
> speed, or who needs to handle these objects directly, can do it, but
> with care.
I believe this is quite a good compromise, and I'm happy about it.
More information about the ecl-devel