[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Must "attempt to get length of a number value" be an error?
- From: Andrew Starks <andrew@...>
- Date: Tue, 7 May 2019 15:01:04 +0000
On 5/7/19, 4:55 AM, "lua-l-bounces@lists.lua.org on behalf of Dirk Laurie" <lua-l-bounces@lists.lua.org on behalf of dirk.laurie@gmail.com> wrote:
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
> #-5
stdin:1: attempt to get length of a number value
stack traceback:
stdin:1: in main chunk
[C]: in ?
> debug.setmetatable(0,{__len=math.abs})
0
> #-5
5
----------
I like to give your crazy ideas at least a few brain cycles before I check out, but I'm wondering where you're going with this. I don't think I know enough math, but do math people have opinions about how long a number is, before they take mushrooms?