lua-users home
lua-l archive

Re: Most awesome string metatable hack

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014年02月01日 Patrick Donnelly <batrick@batbytes.com>:
> I think it would be an improvement if the % operator also accepted
> closures in this case:
>
> "Hello %s" % function() return "world" end
So, should it be done by metatabling __mod for strings or
for functions?

AltStyle によって変換されたページ (->オリジナル) /