diff options
| author | jussi | 2024-01-30 13:36:23 +0200 |
|---|---|---|
| committer | jussi | 2024-01-30 13:36:23 +0200 |
| commit | d21512d88c2e24cf8cb230d29fb253fb5efd1661 (patch) | |
| tree | 87b62953f4996344d68b93bd8228fc67f07be77d /examples/resources/lib/matrix.lua | |
| parent | 143453af9ea9be82b2d58d665bed62abb716e21f (diff) | |
| download | reilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.tar.gz reilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.tar.bz2 reilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.zip | |
Rune lib and __concat for variable libs.
Diffstat (limited to 'examples/resources/lib/matrix.lua')
| -rw-r--r-- | examples/resources/lib/matrix.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/resources/lib/matrix.lua b/examples/resources/lib/matrix.lua index 3b68118..3128610 100644 --- a/examples/resources/lib/matrix.lua +++ b/examples/resources/lib/matrix.lua @@ -41,7 +41,10 @@ Matrix.meta = { end, __mul = function( m1, m2 ) return Matrix:new( RL.MatrixMultiply( m1, m2 ) ) - end + end, + __concat = function( a, b ) + return tostring( a )..tostring( b ) + end, } function Matrix:new( m ) |
