Skip to content

Instantly share code, notes, and snippets.

@joseoliv joseoliv/Shout.cyan
Created Jun 26, 2019

Embed
What would you like to do?
shout
package metaobjectTest
@doc{*
Annotation 'shout' can be attached to a method. It changes
all strings to uppercase letters. This is a demonstration
metaobject, of course.
*}
object Shout
@shout
func shoutTest {
let su = "abc";
let b0 = "aBc" == "ABC";
assert b0;
let b1 = "abcDEf" == "AbCdeF";
assert b1;
}
func run {
shoutTest
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.