|
||||||
|
||||||
Part 17 - Macros
Part 17 - Macrosprint MacroThe There are two ways to call the
print Example Output Hello there Hello there In the second case, for every case except the last, it will write the string to the screen, write a space, then move on. In the end, the two will have the same end result. assert MacroThe
assert Example Output Boo.Lang.Runtime.AssertionFailedException: message at Tutorial.Main(String[] argv)
using MacroThe It creates a safety net for objects to be handled during a block, then disposed of as soon as that block is finished. There are three types of arguments you can declare:
In all three of these, it checks if the underlying using Example This will create the file, write to it, then close it as soon as the lock MacroThe
lock Example debug MacroThe Go on to Part 18 - Duck Typing |
||||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
||||||