[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: operator overloading for string matching
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 17 Aug 2015 21:15:36 +0200
2015-08-17 20:57 GMT+02:00 Mason Bogue <scythe+lua@ortsz.com>:
> The proposal is this:
>
> str1 / str2 -- equivalent to str1:match(str2)
As Liuz has pointed out, this is trivial with current Lua.
But it won't work as expected when str1 and str2 both
are convertible to numbers.
> "abc"/"c"
c
> "234"/"4"
58.5