Google Groups Home
Help | Sign in
enumerations
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
  5 messages - Collapse all
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
theZoot  
View profile
 More options Jan 16, 2:33 pm
From: theZoot <nlaus...@gmail.com>
Date: Wed, 16 Jan 2008 11:33:58 -0800 (PST)
Local: Wed, Jan 16 2008 2:33 pm
Subject: enumerations
How does one refer to .NET enumerations such as
System.Text.RegularExpressions.RegexOptions?

    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.
Ian D  
View profile
 More options Jan 16, 7:20 pm
From: Ian D <gro...@pure-virtual.org>
Date: Wed, 16 Jan 2008 16:20:13 -0800 (PST)
Local: Wed, Jan 16 2008 7:20 pm
Subject: Re: enumerations
The following works:

(Compiled System.Text.RegularExpressions.RegexOptions)

As for "or"ing FlagAttribute enums together, that I don't know yet.

Ian D

On Jan 16, 7:33 pm, theZoot <nlaus...@gmail.com> wrote:


    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.
theZoot  
View profile
 More options Jan 17, 8:15 am
From: theZoot <nlaus...@gmail.com>
Date: Thu, 17 Jan 2008 05:15:23 -0800 (PST)
Local: Thurs, Jan 17 2008 8:15 am
Subject: Re: enumerations
I must be missing something.  When I try:
(pr (Compiled System.Text.RegularExpressions.RegexOptions))

I only get an error, but I appreciate your response.


    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.
theZoot  
View profile
 More options Jan 17, 9:14 am
From: theZoot <nlaus...@gmail.com>
Date: Thu, 17 Jan 2008 06:14:23 -0800 (PST)
Local: Thurs, Jan 17 2008 9:14 am
Subject: Re: enumerations
Sorry about that.  I don't know what I did to mess things up the first
time, but now it is working just fine.  Thanks a bunch


    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.
theZoot  
View profile
 More options Jan 17, 9:27 am
From: theZoot <nlaus...@gmail.com>
Date: Thu, 17 Jan 2008 06:27:40 -0800 (PST)
Local: Thurs, Jan 17 2008 9:27 am
Subject: Re: enumerations
Oh, and as far the bitwise or on the values from enumerations, it
seems that they're of the specific type of enumeration they are and
the | function isn't defined except for integers (I'm guessing here).
So, if you cast the type into an integer things should work fine.
Maybe there's some way to use the the function, but this is the first
thing that popped into my head.  It's a little silly, but it works:

(|
  (+ 0 (compiled System.Text.RegularExpressions.RegexOptions))
  (+ 0 (cultureinvariant System.Text.RegularExpressions.RegexOptions))
)

The + function seems to treat them as integers just fine and return an
integer.


    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
©2008 Google