diff options
author | David Walter Seikel | 2015-07-09 04:19:49 +1000 |
---|---|---|
committer | David Walter Seikel | 2015-07-09 04:19:49 +1000 |
commit | d562c81e21ca74d4a1e607d9e8bfb67056590767 (patch) | |
tree | 56b94e6b9cfef326d7ad1319f94fd19c1465e453 /src | |
parent | Fix some typoes, and white space. (diff) | |
download | SledjHamr-d562c81e21ca74d4a1e607d9e8bfb67056590767.zip SledjHamr-d562c81e21ca74d4a1e607d9e8bfb67056590767.tar.gz SledjHamr-d562c81e21ca74d4a1e607d9e8bfb67056590767.tar.bz2 SledjHamr-d562c81e21ca74d4a1e607d9e8bfb67056590767.tar.xz |
Add some ideas for how to make Lua Skang less verbose.
Diffstat (limited to 'src')
-rw-r--r-- | src/GuiLua/test.skang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/GuiLua/test.skang b/src/GuiLua/test.skang index 6346a4a..cbd848d 100644 --- a/src/GuiLua/test.skang +++ b/src/GuiLua/test.skang | |||
@@ -12,3 +12,12 @@ skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button" | |||
12 | 12 | ||
13 | test.bar = 'things' | 13 | test.bar = 'things' |
14 | test.ffunc(1, 'two') | 14 | test.ffunc(1, 'two') |
15 | |||
16 | |||
17 | --[[ Ideas to make this less verbose. | ||
18 | |||
19 | Maybe we can leave out the "types = 'widget'" part, and assume it's a widget if there's a "widget = '...'" argument. | ||
20 | |||
21 | Perhaps an actual skang.widget.button(), or even a widget.button(). | ||
22 | |||
23 | ]] \ No newline at end of file | ||