[DGD] Innacuracy with DGD read_file documentation.

Felix A. Croes felix at dworkin.nl
Mon Oct 9 01:07:49 CEST 2006


Steve Wooster <s.f.m.wooster+dgd at gmail.com> wrote:

> I was having trouble getting whitelisted, so I figured I'd send this to
> the mailing list instead of directly to Dworkin...
>
> I think I've found a minor inaccuracy with the documentation for
> read_file. It says:
>
> ERRORS
>     If the offset is out of range or the returned string would be too
>     large, an error will result.
>
> However, from my own tests, it looks like it returns nil when the offset
> is out of range, instead of raising an error. I believe I'm using
> version 1.2.86 of DGD.

The documentation is not in accord with what the kfun does, but it
may be better to actually throw an error here -- and the same goes for
write_file().  I'll include the changes in the next patch.

Oh, and your request to be added to my email whitelist was received and
processed.

Regards,
Dworkin



More information about the DGD mailing list