[Top Page][All Pages][Recent Changes]

Edit History:Diff

Changes of ブロック構文っぽいもの between Epoch and 2015/09/30 17:28:37 JST

  • + added lines
  • - deleted lines

Return to the edit history

+ [[匿名ラベル]]に引き続き、ブロック構文っぽい構文を提供するマクロ。~%
+ あくまで「っぽい」であり、レキシカルスコープなどはない。
+ 
+ ** notesel, noteunsel
+ {{{
+ #define global ctype note(%1) %tnotesel_unsel notesel %1: gosub *%i: noteunsel: if 0 : *%o
+ 
+ sdim buf1, 256
+ sdim buf2, 256
+ 
+ note( buf1 ) {
+ 	noteadd "This is buf1"
+ 	
+ 	note( buf2 ) {
+ 		noteadd "This is buf2"
+ 	
+ 		noteadd "----buf2----"
+ 		
+ 		return
+ 	}
+ 	
+ 	noteadd "----buf1----"
+ 	
+ 	return
+ }
+ 
+ mes buf1
+ mes buf2
+ }}}