[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 10 LOC program is too complex to be compiled
- From: Ką Mykolas <kamicc@...>
- Date: Mon, 27 Apr 2015 15:24:22 +0300
Same with Lua 5.1.5.
On 4/27/15, Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
> Hi!
>
> I have defined 150 local variables and created an array,
> in which 50-th element is a nested array of length 50.
> ---------------------------------------------------------
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> local a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
> a = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
> 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2}}
> ---------------------------------------------------------
> Both Lua 5.2 and Lua 5.3 have failed to compile it:
> test.lua:10: function or expression too complex near '2'
>
> Why such short code is considered to be "too complex"?
> I'd like to write much more complex programs than this one.
>
> --Egor
>