[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute is scary; Jay rants about strings again (was Re: [ANNOUNCE] lua stdlibs release: now Lua 5 compatible)
- From: Reuben Thomas <rrt@...>
- Date: Sat, 31 Jan 2004 21:38:04 +0100 (CET)
> Hey, Lua maintainers: this could be a fix for it:
>
> liolib.c:
> int
> luaIO_filecreate(lua_State *L, FILE *f)
> {
> FILE **pf = newfile(L);
> *pf = f;
> return 1;
> }
That's a good idea, and its lack a bit puzzling in retrospect: "what, no
simple constructor?".
Would that stop you needing to use the shell?
--
http://www.mupsych.org/~rrt/ | traddutore, v.t. traditore (Anon)