enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Enigma-devel] Two new levels.


From: Daniel Heck
Subject: Re: [Enigma-devel] Two new levels.
Date: Tue, 22 Mar 2005 18:33:52 +0100

On Tue, 22 Mar 2005 14:38:24 +0000 Nat Pryce wrote:

> A quick question: Has the behaviour of the Lua object-creation
> functions changed between 0.90-beta and 0.90-rc1?  They used to return
> the object that had been created, and the "How many spirals?" level
> relies on that.  However, it now seems that the objects are not
> returned, and so my level errors out.

No, the behaviour has not changed.  What has changed, however, is that
Enigma reports errors more aggressively.  In this case, the problematic
code was

function send_message_to_group( group, message, arg )
    for i,object in group do
        send_message( object, message, arg )
    end
end

The loop also visits the special field "n", which does not contain an
object but the table size.  It works perfectly with

    for i=1,getn(group) do
        local object = group[i]

though.

Cheers,
Daniel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]