Something like this:
b1 = Block()
b2 = Block()
s1 = [| x > 0 |]
b1.Statements.Add(s1)
s2 = [| y > 0 |]
b2.Statements.Add(s2)
exp = BinaryExpression(BinaryOperatorType.Or, b1, b2)
f = [|
myProperty as bool:
get:
return $exp
|]
classDef.Members.Add(f) // compiles just fine, crashes Reflector
On Oct 18, 3:34 pm, Ayende Rahien <
aye...@...> wrote:
> Please show some code
>
> On Sun, Oct 18, 2009 at 10:21 AM, Dmitri Nesteruk
> <
dmitrineste...@...>wrote:
>
>
>
> > I've been attempting to create Or statements using BinaryExpression
> > (BinaryOperatorType.Or, ...) but all my attempts end up in invalid IL,
> > which causes Reflector to complain about invalid branching. I've
> > tested both simple and complex cases - other operators (e.g., +) work
> > just fine, but Or seems broken.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to
boolang@...
To unsubscribe from this group, send email to
boolang+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/boolang?hl=en-~----------~----~----~----~------~----~------~--~---