[Ironruby-core] Flagged enums

Jimmy Schementi Jimmy.Schementi at microsoft.com
Wed Mar 25 13:06:29 EDT 2009

IronRuby should support this. Enum values are ints anyway, so that behavior shouldn't be hard to implement.
From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Thibaut Barrère [thibaut.barrere at gmail.com]
Sent: Wednesday, March 25, 2009 2:39 AM
To: ironruby-core
Subject: [Ironruby-core] Flagged enums


it seems that the following code isn't supported:

AnchorStyles.Bottom | AnchorStyles.Left

I believe IronPython supports this (see EnumOps.cs).

Is that syntax planned ?

-- Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090325/47ea2e10/attachment.html>

More information about the Ironruby-core mailing list