mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
commit
3e0216bbcc
@ -190,7 +190,7 @@ end
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- A table can have a metatable that gives the table operator-overloadish
|
||||
-- behavior. Later we'll see how metatables support js-prototypey behaviour.
|
||||
-- behaviour. Later we'll see how metatables support js-prototypey behaviour.
|
||||
|
||||
f1 = {a = 1, b = 2} -- Represents the fraction a/b.
|
||||
f2 = {a = 2, b = 3}
|
||||
|
Loading…
Reference in New Issue
Block a user