Skip to content

Instantly share code, notes, and snippets.

Last active Mar 25, 2020
What would you like to do?
package metaobjectTest
Annotation 'shout' can be attached to a method. It changes
all strings to uppercase letters. This is a demonstration
metaobject, of course.
object Shout
func shoutTest {
"shoutTest run" println;
let su = 'A' ++ 'B' ++ 'C';
let suLower = 'a' ++ 'b' ++ 'c';
assert su != suLower;
let b0 = "aBc" == "ABC";
assert b0;
let b1 = "abcDEf" == "AbCdeF";
assert b1;
let abcLower = "abc";
assert su == abcLower;
assert abcLower == su;
func run {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment