[Mono-list] System.Text.RegularExpressions

Paolo Molaro lupus@ximian.com
Thu, 31 Jan 2002 16:23:45 +0100


On 01/30/02 Daniel Lewis wrote:
> > Will that work even if the user of the regex engine won't have the
> > permission to use Reflection.Emit?
> 
> Hmmm... I never really thought about that. I don't know a lot about the
> security architecture, could you give me an example of how to turn off this
> permission? I'll test it against the MS implementation first, but my guess is
> that CIL compilation won't work in this case, and you'll have to resort to the
> default (interpreted) behaviour.

I didn't research the details, yet. It was just a heads up; if you plan
to keep the interpreter support that's good enough to workaround the
issue if it ever arises.

> I've put hooks into the code to support CIL compilation, but I'm not going to
> make a full go at it until I feel a little more confident about my interpreter.
> Changes to the pattern bytecode or adding new optimizations would otherwise
> require double the effort.

Makes sense.

Thanks!

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better