[Mono-list] frozen regex support?

Piers Haken piersh@friskit.com
Wed, 4 Sep 2002 08:16:41 -0700


> The possible differences are boundless. :-(

Yup, but fortunately the syntactic differences are listed on the class
status page (http://go-mono.org/class-status-System.html). It's the
semantic differences that are the problem.

Piers.

> -----Original Message-----
> From: Chris Daly [mailto:cdaly@locosoft.net] 
> Sent: Tuesday, September 03, 2002 9:48 PM
> To: Mono-list@ximian.com
> Cc: stodden@cs.tum.edu; miguel@ximian.com; Piers Haken
> Subject: Re: [Mono-list] frozen regex support?
> 
> 
> > I believe Daniel is saying that the assemblies created by 
> the API in 
> > question call back into the MS RegEx libraries in an undocumented 
> > fashion. Since those assemblies can concievably be 
> 'compiled' using an 
> > MS-based runtime and then consumed by a MONO-based runtime, 
> the mono 
> > runtime would need to support whatever API calls those assemblies 
> > make.
> 
> I don't know about the legal issues, but I think I understand 
> the technical issues because I'm working on a tool that does 
> something similar to Regex.CompileToAssembly().
> 
> If you look at the assembly generated by Daniel's test case 
> you will see it contains a class who's base class is 
> System.Text.RegularExpresssions.Regex.  Thus it can call 
> protected methods and use protected fields in the base class. 
>  So if you generated the assembly with Microsoft's System.dll 
> and tried to run it with Mono's System.dll you could have 
> problems.  The generated assembly might be trying to access a 
> protected string named _pattern, but Mono's Regex might have 
> called it _thePattern or might have made it a char[] instead 
> of string.  The possible differences are boundless. :-(
> 
> Chris
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com 
> http://lists.ximian.com/mailman/listinfo/mono-> list
>