Page 1 of 1

Visitor pattern in Cobra

PostPosted: Mon Jul 07, 2008 9:57 pm
by Charles
Actually this class would work fine with any CLR language including C# and VB. It's likely that Visitor will get into the Cobra standard library, enabling you to quickly pound out a visitor pattern in any Cobra program. Feedback welcome.

Re: Visitor pattern in Cobra

PostPosted: Wed Jul 09, 2008 10:18 pm
by Charles
Ack, I uploaded the wrong file. This new one is much the same, but the docs are slightly improved.

Re: Visitor pattern in Cobra

PostPosted: Wed Aug 13, 2008 4:38 pm
by Charles
Btw this made it into the Cobra standard library, so the "Visitor" class is now available by default. It's a rather small, but useful class. Inside CobraLang.cobra, you'll find a doc string explaining how it works.