mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
10 lines
172 B
Perl
10 lines
172 B
Perl
|
|
|
|
struct A {
|
|
}
|
|
|
|
A.metamethods.__luametatable = { __index = function(self,idx) return 4 end }
|
|
A.methods.foo = function() return 5 end
|
|
a = terralib.new(A)
|
|
|
|
assert(a.foo == 4) |