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
2
votes
2 answers

How to escape identifiers in Boo?

If I have an identifier with a same name as existing keyword, how do I escape it?
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
2
votes
5 answers

Does .Net have a enum of chars available

I'm just wondering whether .Net has a built-in enum of chars anywhere. I'm just parsing a CSV file and it occured to me I'd like to be able to do something like: line.Split(Chars.Comma) instead of: line.Split(char(',')) It just seems cleaner to…
andyhasit
  • 14,137
  • 7
  • 49
  • 51
2
votes
1 answer

How to call a function, defined in c# from boo?

I'm using Boo as the script engine in my C# program where I need to run user-defined scripts. How can I call a function which is defined in my C# code, from inside the Boo script?
Mohammad Alinia
  • 320
  • 2
  • 9
1
vote
3 answers

Why would one choose Iron Python instead of Boo?

Possible Duplicates: BOO Vs IronPython Boo vs. IronPython Say you want to embed a scripting language into a .NET application. Boo is modelled on Python syntax, but also includes type inference, and just in general seems to be a better, more…
Paul Hollingsworth
  • 13,124
  • 12
  • 51
  • 68
1
vote
1 answer

Declare a global variable in boo

As far as I can tell from the website, the following code should compile to a DLL with a top-level property Version: namespace MyLibrary [Module] class MainClass: public static Version as string static def constructor(): Version =…
Todd Owen
  • 15,650
  • 7
  • 54
  • 52
1
vote
1 answer

Does Boo support DateTime literals?

Does Boo support DateTime literals? Something like this: myDate = #2011/1/1# There is no mention about it on the Boo wiki: http://docs.codehaus.org/display/BOO/Builtin+Literals. Thanks.
Igor Pashchuk
  • 2,455
  • 2
  • 22
  • 29
1
vote
1 answer

lambda expression in boo

dose boo understand Expression tree? I try to compile this line with sharp develop exp as System.Linq.Expressions.Expression[of Func[of SomeClass, bool]] = { p as Text | return (p.Name == 'tttt') } but sharp develop raised this error Cannot…
user39880
1
vote
1 answer

Nant, Booc, and x64

I have a .NET project that's always been built/run by/on 32 bit machines. I got a new a 64 bit computer and am trying to tackle the task of getting it working there. The build script is in nant, and at one point we compile some boo code using the …
user24359
1
vote
2 answers

Encoding-free String class for handling bytes? (Or alternative approach)

I have an application converted from Python 2 (where strings are essentially lists of bytes) and I'm using a string as a convenient byte buffer. I am rewriting some of this code in the Boo language (Python-like syntax, runs on .NET) and am finding…
Kylotan
  • 18,290
  • 7
  • 46
  • 74
1
vote
1 answer

How can i use c# dynamic object in boo (Rhino DSL)?

I am using Rhino DSL and when I want to pass a dynamic object into script, boo compiler throws the Exception below: BCE0019: Boo.Lang.Compiler.CompilerError: 'Percent' is not a member of 'object'. my boo code: Result = Run().Percent C# Dsl Base…
Omid.Hanjani
  • 1,444
  • 2
  • 20
  • 29
1
vote
1 answer

Operator overloading in Boo - op_NotEqual?

I have an old C# library that I am converting to Boo, and it uses operator overloading. In the interest of not to getting into the why of that, I am looking for a way do the same thing in Boo. This takes the form: public static bool operator…
dwerner
  • 6,462
  • 4
  • 30
  • 44
1
vote
3 answers

.NET Nested Classes

The current class library I am working on will have a base class (Field) with over 50 specific "field" types which will inherit from "Field" and nested for maintain readability. For example... abstract class Field { public int Length { get; set;…
Inisheer
  • 20,376
  • 9
  • 50
  • 82
1
vote
2 answers

Minimal Silverlight example

What is the really minimal example of Silverlight application? For example, I made the following example with IronPython: from System.Windows import Application from System.Windows.Controls import Canvas, TextBlock canvas = Canvas() textblock =…
Headcrab
  • 6,838
  • 8
  • 40
  • 45
1
vote
4 answers

.Net libraries used in any .Net language?

Quick question, I've been reading about some .Net stuff and the way some people talk implies on me that a .Net library could be used with multiple .Net languages. Maybe it's just wishful thinking on my part lol. For instance could I use the Tao…
Isaiah
  • 1,995
  • 2
  • 18
  • 29
1
vote
1 answer

Windows Mobile device states that the assembly System.Windows.Forms 2.0.0.0 cannot be found

I am a newbie to .NET programming and I'm trying to create a simple Windows Forms application for a Windows Mobile device using the .NET Compact Framework 2.0. I develop using Boo and using Nant to build my application. My application compiles but…
David Nordvall
  • 12,404
  • 6
  • 32
  • 52
1 2 3
8 9