[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Challenge] Smallest table copy
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Thu, 8 May 2014 17:24:28 +0200
I doubt you can get an improvement with `load`.
load"local a=..."
is three characters longer than
function(a)end
You can cache the prologue in a variable, but two functions is too
little to gain from it:
L="local a,b,c=..."load(L.."")load(L.."")
function(a,b,c)endfunction(a,b)end
—Pierre-Yves
On Thu, May 8, 2014 at 4:57 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
> Am 08.05.2014 15:47 schröbte Thiago L.:
>
>>
>> I wonder if less than 239 chars is possible (maybe with some
>> load()/loadstring() trickery?)
>
>
> Sure. Using Paul's trick I'm currently at 230 bytes (234 if you don't like
> global `next`). But it's based on my original proposal, so you won't like it
> ...
>
> But using `load` is an interesting idea (e.g. for avoiding the `function`
> keyword) ...
>
> Philipp
>
>
>