[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ANN: lua captcha ( 0.2 )
- From: startx <startx@...>
- Date: Mon, 21 Nov 2011 18:27:28 +0000
On Mon, 21 Nov 2011 19:21:49 +0100
Patrick Rapin <firstname.lastname@example.org> wrote:
> It seems interesting. I do not need to generate captchas right now,
> but maybe in the future.
> I have two small remarks after having looked at the project:
> - All your examples in the Introduction wiki page begin with "require
> 'gd' ". It seems useless.
you need to load the gd module at least once, of course not every time
you call captcha.new() . i only addded it into the wiki for easy copy
> - You always use string.len() for retrieving the length of the string.
> Why not use the # operator ?
true, is there an advantage ( apart from looking nicer) ? i remember
that there was some pitfall in using # , but i don't remember right now,
ill give it a go. ( the thing i remember might be related to unicode