[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Finding the 'double' resolution
- From: Philippe Lhoste <PhiLho@...>
- Date: Mon, 23 Jul 2001 14:40:17 +0200 (MEST)
John Belmonte wrote:
> If you have control over the Lua environment it would make more sense to
> just export the info available to C. For example from <float.h>:
Actually, I was quite too much on the Lua side to think about the
underlaying C code... And franckly, I didn't knew these constants (by their names, at
We must admit we don't frequently goes to these limits, anyway, since they
are quite big.
My test was an excuse to write another Lua snippet, with a nice trick to
avoid lengthly loops. And it gives practical, real values. After all, I could be
a pure Lua programmer, ie. without access to a C compiler.
Thank you anyway.
BTW, I have a little grudge again the manual of the 4.0 version... It often
make reference to the C documentation (eg. for the printf formats, the math
functions, or the date function). I understand that, as it eases the writing,
lighten the document, and avoid paraphrasing.
But since Lua is intended to be used, among others, by people with little
programming knowledge, a non self-contained manual is a bit annoying.
That said, I must add that actually, if I ever release a program using Lua
exposed to end users, I will probably rewrite my own manual (taking liberal
parts of the existing one, if it is allowed), carefully omitting some parts
(like API, debugging, perhaps tags, etc.) and adding explainations for the
libraries I could have written.
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
Sent through GMX FreeMail - http://www.gmx.net