Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Problem generating Or statements
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dmitri Nesteruk  
View profile  
 More options Oct 18, 4:21 am
From: Dmitri Nesteruk <dmitrineste...@gmail.com>
Date: Sun, 18 Oct 2009 01:21:28 -0700 (PDT)
Local: Sun, Oct 18 2009 4:21 am
Subject: Problem generating Or statements
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.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Oct 18, 7:34 am
From: Ayende Rahien <aye...@ayende.com>
Date: Sun, 18 Oct 2009 13:34:35 +0200
Local: Sun, Oct 18 2009 7:34 am
Subject: Re: Problem generating Or statements

Please show some code

On Sun, Oct 18, 2009 at 10:21 AM, Dmitri Nesteruk
<dmitrineste...@gmail.com>wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitri Nesteruk  
View profile  
 More options Oct 21, 4:44 am
From: Dmitri Nesteruk <dmitrineste...@gmail.com>
Date: Wed, 21 Oct 2009 01:44:51 -0700 (PDT)
Local: Wed, Oct 21 2009 4:44 am
Subject: Re: Problem generating Or statements
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...@ayende.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google