Questions tagged [boo]

Boo is an object oriented, statically typed programming language for the Common Language Infrastructure, with a Python-inspired syntax and a special focus on language and compiler extensibility.

Boo is an open source, object oriented, statically typed programming language for the Common Language Infrastructure, with a Python-inspired syntax and a special focus on language and compiler extensibility.

Some features of note include type inference, generators, multimethods, optional duck typing, macros, true closures, currying, and first-class functions. Boo has been actively developed since 2003.

131 questions
4
votes
2 answers

How can I import the System.Linq namespace to Boo?

When I try to import the System.Linq namespace to Boo compiler, I get this error: Boo.Lang.Compiler.CompilerError: Namespace 'System.Linq' not found, maybe you forgot to add an assembly reference? I use "Rhino.DSL.dll" and my DSL engine code is…
Omid.Hanjani
  • 1,444
  • 2
  • 20
  • 29
4
votes
2 answers

Converting an array of 2 consecutive bytes to integers faster

I have a 'huge' amount of data, which may vary between 50 and 100 MegaBytes. I read this data in as an array of bytes using a filestreamer. The thing is, I want to convert all consecutive 2 bytes into an integer. The way I do this is I loop through…
Shammah
  • 619
  • 1
  • 5
  • 12
4
votes
1 answer

How can I intercept a method call in Boo?

Ruby has method_missing , Python has getattr. Does Boo offer something I can use to intercept method calls?
Geo
  • 93,257
  • 117
  • 344
  • 520
3
votes
2 answers

Multithreaded Script invocation in Unity3d

I was trying to implement multithreaded script execution in Unity3d, but it seems that the there is no way provided by Unity libraries and we have to use System.Threading provided by Mono. But they have mentioned that Unity Scripting is not thread…
Orochi
  • 395
  • 4
  • 13
3
votes
2 answers

How can i use Extension Methods in boo

I have a list in my boo script and want to use System.Linq Extension Methods but boo compiler throw this Exception: BCE0019: Boo.Lang.Compiler.CompilerError: 'ToList' is not a member of 'System.Linq.IQueryable`1[[...]]'. ("..." is type of my…
Omid.Hanjani
  • 1,444
  • 2
  • 20
  • 29
3
votes
2 answers

How do I add a language keyword in Boo to let 'when' behave as an 'if'

I cannot seem to figure out how I can add the 'when' keyword to BOO which should behave as an 'if'. I figure I could make a method, but then I cannot move the when around like I can with if. Any pointers would be appreciated. -Mark
None
3
votes
3 answers

Using Boo in a web app

I am trying to support embedded scripting in an existing web app and would like our users to be able to write Boo scripts using an HTML editor, problem is BOO uses python-like indentation (instead of curly brackets in the more traditional languages…
code-ninja
  • 1,586
  • 1
  • 15
  • 23
3
votes
4 answers

Strange boo language syntax

I've run into a strange syntax in Boo Language Guide : setter = { value | a = value } What does the | operator mean?
Artem Tikhomirov
  • 21,497
  • 10
  • 48
  • 68
3
votes
1 answer

Internals visible to Boo (Binsor)

I am using Castle Windsor for IoC and I want to use Binsor to define my configuration. I want to let my internals be visible to Boo. I have tried to mark my assembly with InternalsVisibleTo("Boo.Lang") but that didn't do the job. I have tried…
Dan
  • 59
  • 2
  • 6
3
votes
2 answers

Python3 function annotations for type hinting versus Boo

I've started on a medium-sized project in python, and I decided to use python 3 because I'm not using any large external libraries and py3k has some nice new syntactic sugar and more importantly function annotations. However, it seems like none of…
Josh Gao
  • 2,525
  • 23
  • 21
3
votes
1 answer

Is WSA compiler in Boo safe to use?

In our program we use boo as macro system about 2 years. All works like a charm, but python syntax is weird for newcomers. As I know boo has white space agnostic (WSA) compiler with ruby like syntax: instead of def Hello(): print 'Hello' you can…
Sergey Mirvoda
  • 3,209
  • 2
  • 26
  • 30
3
votes
1 answer

Boo - Excel Automation, trouble selecting ranges

I'm investigating Boo and thought it would be a useful exercise to try converting a couple of venerable VB Scripts that automate Excel (2007, in this instance). A lot of things seem to translate very easily, however I'm having a huge amount of…
Leonard H. Martin
  • 2,734
  • 4
  • 23
  • 26
3
votes
0 answers

Boo compiler throws "Attempted to read or write protected memory" occasionally

I sometimes get the following exception when compiling the Boo scripts: A unexpexted thing happened, C:\Resources\temp\de4ee12533b34facbb80d007648a48f2.BackendRole\RoleTemp output562348dc-eaec-41d3-9463-330b8bbe7ab8.bre(1,1): BCE0055:…
TheKotlet
  • 71
  • 2
3
votes
2 answers

Generics in Boo - Is there an equivalent of the C# where clause

Is there a way in Boo to express some constaints on generic types as we can do using the where clause in C#? In short, how to write?: class MyClass where T:Icomparable {...} Thank you
Benoît Vidis
  • 3,908
  • 2
  • 23
  • 24
3
votes
2 answers

What is a real-world application for HORN?

I've been hearing a bit about HORN lately, and wonder what problems it can solve or how a real life situation of using it is beneficial. http://code.google.com/p/hornget/
Chris Missal
  • 5,987
  • 3
  • 28
  • 46
1 2
3
8 9