Re: Question about io.open modes
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Question about io.open modes
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2012年3月22日 19:16:25 -0300
> ANSI C90 accepts both "w+b" and "wb+" I think; I don't have a final
> copy but the draft3 available online does call out those two
> alternatives. C99 does as well.
You are right; my mistake. Anyway, it states that the behavior is
undefined for any string not explicitly allowed. For Lua, it is simpler
to check only for the "w+b" style, and it does not seem to be any "loss
of generality" in that restriction.
-- Roberto