void readpost…(…) {
// there's a new post from Tyche
// read the post and realize it's a troll
// bang head because its a troll
Mudbytes.reply();
}
void readpost…(…) {
// there's a new post from Tyche
// it doesn't look like a trolll
// further review & it looks like a troll
Mudbytes.reply();
}
void readpost…(…) {
// there's a new post from Scandum
// throw an exception
Mudbytes.reply();
}
after() : readpost() {
Mudbytes.reply();
}
pointcut readpost() : execution(* readpost*(*) ) && this(MyMudbytesClass) && within(some.ForumHacks.*);
void readpost…(…) {
// there's a new post from Tyche
// it doesn't look like a trolll
// further review & it looks like a troll
}
Doesn't even need to be declared. Of course there are quite a few ruby built-in globals.
However, all locals in ruby are globals including those on the stack (other than immediate values).
Check this out…
$ ruby globals.rb
xyzzy
plugh
Function change_local_a
Spoiler
ObjectSpace.each_object(String) do |x|
if x == "xyzzy"
x.replace "plugh"
end
end
end
And if course all automatics in C are allocated on a global stack and can also be accessed from anywhere in your program.