On Thu, Aug 23, 2012 at 4:30 PM,
<lua-l-request@lists.lua.org> wrote:
Send lua-l mailing list submissions to
lua-l@lists.lua.org
To subscribe or unsubscribe via the World Wide Web, visit
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/lua-l-lists.lua.org
or, via email, send a message with subject or body 'help' to
lua-l-request@lists.lua.org
You can reach the person managing the list at
lua-l-owner@lists.lua.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lua-l digest..."
Today's Topics:
1. Re: Bezier Curve for Corona SDK (Thijs Schreijer)
2. Change value of upvalue from within function (Eric Tetz)
3. Re: Change value of upvalue from within function (Alex Queiroz)
4. Re: Change value of upvalue from within function (Rob Hoelz)
5. Apology for slowness of list this week (Daniel Silverstone)
----------------------------------------------------------------------
Message: 1
Date: Wed, 22 Aug 2012 23:03:59 +0200
From: "Thijs Schreijer" <thijs@thijsschreijer.nl>
Subject: Re: Bezier Curve for Corona SDK
To: "Lua mailing list" <lua-l@lists.lua.org>
Message-ID:
<ed8a7bbfd55aba9b2d340b87776acf63.squirrel@www.ellenkuipers.nl">ed8a7bbfd55aba9b2d340b87776acf63.squirrel@www.ellenkuipers.nl>
Content-Type: text/plain;charset=iso-8859-1
> I have created a Bezier Curve function which accepts unlimited number of
> control points, which allows you do get any type of curve you dreamed of.
>
> You can check it out at
> http://developer.coronalabs.com/code/bezier-curve-corona-sdk
>
Nice, but Your post lacks the license you have for your code. Is it MIT?
Could you please add it? Makes it easier to reuse your code.
Thijs.
------------------------------
Message: 2
Date: Wed, 22 Aug 2012 15:52:12 -0600
From: Eric Tetz <erictetz@gmail.com>
Subject: Change value of upvalue from within function
To: Lua mailing list <lua-l@lists.lua.org>
Message-ID:
<CADqrHeUmqy9sadQTpbcrAY0UhLOT9mapikTsKsLE=UcvqSuvCg@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
If I have a C function called by Lua. It has an upvalue and I'd like
to change it's value. Possible?
static int closure_that_has_upvalues( lua_State* L )
{
...
// how can I change the value of, say, the upvalue at
lua_upvalueindex(1)?
------------------------------
Message: 3
Date: Wed, 22 Aug 2012 23:54:18 +0200
From: Alex Queiroz <asandroq@gmail.com>
Subject: Re: Change value of upvalue from within function
To: Lua mailing list <lua-l@lists.lua.org>
Message-ID:
<CABpjPcLm_HFfn6HRHrH3zNyLqWROAXYgJsGikczvzCfzWjOesA@mail.gmail.com">CABpjPcLm_HFfn6HRHrH3zNyLqWROAXYgJsGikczvzCfzWjOesA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hallo,
On Wed, Aug 22, 2012 at 11:52 PM, Eric Tetz <erictetz@gmail.com> wrote:
> If I have a C function called by Lua. It has an upvalue and I'd like
> to change it's value. Possible?
>
Box the actual value inside a table and then set the table as the upvalue.
--
-alex
http://www.artisancoder.com/
------------------------------
Message: 4
Date: Wed, 22 Aug 2012 23:56:20 +0200
From: Rob Hoelz <rob@hoelz.ro>
Subject: Re: Change value of upvalue from within function
To: lua-l@lists.lua.org
Message-ID: <20120822235620.7917ca72@hoelz.ro">20120822235620.7917ca72@hoelz.ro>
Content-Type: text/plain; charset="us-ascii"
An upvalue index is just like a regular stack index, so you can use
lua_replace with it:
lua_newtable(L);
lua_replace(L, lua_upvalueindex(1));
-Rob
On Wed, 22 Aug 2012 15:52:12 -0600
Eric Tetz <erictetz@gmail.com> wrote:
> If I have a C function called by Lua. It has an upvalue and I'd like
> to change it's value. Possible?
>
> static int closure_that_has_upvalues( lua_State* L )
> {
> ...
> // how can I change the value of, say, the upvalue at
> lua_upvalueindex(1)?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://vlists.pepperfish.net/cgi-bin/mailman/private/lua-l-lists.lua.org/attachments/20120822/fe9cf01d/signature-0001.pgp
------------------------------
Message: 5
Date: Thu, 23 Aug 2012 11:08:59 +0100
From: Daniel Silverstone <dsilvers@digital-scurf.org>
Subject: Apology for slowness of list this week
To: Lua mailing list <lua-l@lists.lua.org>
Message-ID: <20120823100859.GM29334@somnambulist.local>
Content-Type: text/plain; charset=us-ascii
Hi,
I should apologise for the slowness of lua-l this week. Starting Monday, a
botnet was using a cracked password of one of my users' mail accounts to send
vast quantities of spam through Pepperfish.
Fortunately the checks and balances I have in place stopped the outgoing queue
pretty quickly; but I still had to deal with incoming mails at the rate of 10
to 40 per second, and combine that with the huge queue which took ages to clear
down, it slowed lua-l for probably the majority of Monday and a bit of Tuesday
until it was all clear.
I have now reached the point that I'm confident that it's not recurring and so
I thought I'd best let everyone know so they don't worry about it.
Thanks,
Daniel.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69
------------------------------
_______________________________________________
lua-l mailing list
lua-l@lists.lua.org
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/lua-l-lists.lua.org
End of lua-l Digest, Vol 25, Issue 25
*************************************