import Rhino.Commons from Rhino.Commons

Holy Frakin’ Frakity Frak!

Perhaps it’s my own fault for using Binsor without being familiar with Boo, but I just ran into a doozy of a PITA.

I was trying to add an ThreadSafeQueue from Rhino.Commons into my container, but Binsor kept complaining that IQueue and ThreadSafeQueue were invalid identifiers. I had done an “import Rhino.Commons” but that wasn’t working.

Two hours and much yelling later, I discovered that since there is a Rhino.Commons is in multiple DLL’s, I have to specify which Rhino.Commons namespace of which individual DLL (in this case Rhino.Commons.dll) to import into my Binsor script like so:

import Rhino.Commons from Rhino.Commons

Friction.

Btw- I can’t thank Oren enough for releasing the Rhino.Tools/Commons/Whatever. ThreadSafeQueue is something I used a lot in Java (well BlockingQueue), then I come to .NET land and there’s nothing like it in the stdlib.  Der fick?

Post a Comment

*Required
*Required (Never published)