Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 334900 Details for
Bug 451032
Example files for Emacs test plans
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Example file for app-emacs/lua-mode
test.lua (text/plain), 910 bytes, created by
Ulrich Müller
on 2013-01-09 12:04:20 UTC
(
hide
)
Description:
Example file for app-emacs/lua-mode
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2013-01-09 12:04:20 UTC
Size:
910 bytes
patch
obsolete
>-- Access inside table over __call >-- This is a very nice access since it only can be called over <this>() >function newT() > -- create access to a table > local _t = {} > -- metatable > local mt = {} > mt.__call = function() > -- hold access to the table over function call > return _t > end > return setmetatable( {},mt ) >end > >-- Access inside table over commonly used variable self[self], inside __index >function newT2() > local t = {} > local mt = {} > mt.__index = { > [t] = {} > } > return setmetatable( t,mt ) >end > >-- Access inside table over nomal variable >-- disadvantage is that setting a key to _t will override >-- the access to the hidden table >function newT3() > local mt = {} > mt.__index = { > _t = {} > } > return setmetatable( {},mt ) >end > >-- Access over nomal variable inside table >function newT4() > local t = {} > t._t = {} > return t >end >-- CHILLCODEâ¢
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 451032
:
334872
|
334874
|
334876
|
334878
|
334880
|
334882
|
334884
|
334886
|
334888
|
334890
|
334892
|
334894
|
334896
|
334898
|
334900
|
334902
|
334904
|
334906
|
334908
|
334910
|
334912
|
334914
|
334916
|
334918
|
334920
|
334922
|
334924
|
334926
|
334928
|
334930
|
334932
|
334934
|
334936
|
334938
|
353472
|
353474
|
353476
|
360484
|
370044