Skip to content

Instantly share code, notes, and snippets.

@s-hiiragi
Created November 3, 2011 10:22
Show Gist options
  • Save s-hiiragi/1336205 to your computer and use it in GitHub Desktop.
Save s-hiiragi/1336205 to your computer and use it in GitHub Desktop.
Destructive Named Methods Sample
;sample_destructive_methods
;
;名前に「!」が付いているメソッドは破壊的メソッド
#module destm a, b
#modfunc 更新! int x, int y
a = x
b = y
return
#modfunc 表示
mes "a = " + a + ", b = " + b
return
#global
newmod x, destm
更新! x, 100, 200
表示 x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment