Created
November 3, 2011 10:22
-
-
Save s-hiiragi/1336205 to your computer and use it in GitHub Desktop.
Destructive Named Methods Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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