|
: 24 : 26 : 2 |
Why does code like this (Visitor Pattern):
class User
sub invite(b as Visitor)
b.visitUser(me)
end sub
sub doSomething()
end sub
end class
class Visitor
sub visitUser(a as User)
a.doSomething()
end sub
end class
work in one class lib, but not when seperated into two libs ("Illegal Circular use")?
This makes some OOP concepts (in this case Visitors, which call the User back) impossible when seperating code into different libs or you get huge script libs (ls.doc only work with so long libs and it also means you touch all code when you just want to change one bit).
Please make this error go away!
|