[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Numeric for loop with rationals
- From: dyngeccetor8 <dyngeccetor8@...>
- Date: Tue, 30 Jan 2018 02:57:11 +0300
On 01/30/2018 02:16 AM, Soni "They/Them" L. wrote:
>
> On 2018-01-29 09:00 PM, dyngeccetor8 wrote:
>> On 01/29/2018 04:52 AM, Soni "They/Them" L. wrote:
>>> I can't get `for x=r(1, 10), r(10, 10), r(1, 10) do print(x) end` to work.
>> Me too.
>
> It errors that they aren't numbers. Ofc they aren't Lua numbers, they're custom
> numbers.
>
> It saddens me that Lua doesn't support custom numbers as well as other languages
> (namely Python). :(
Because it's numeric "for".
There is generic "for" for iterating other things.
-- Martin
Attachment:
communicating.png
Description: PNG image