gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Fwd: Re: [Regexp] Gnu regexp and port to C#]


From: Jonathan . Cogley
Subject: RE: [Fwd: Re: [Regexp] Gnu regexp and port to C#]
Date: Wed, 27 Nov 2002 07:45:44 -0500

The biggest difference I am noticing while coding in C#, coming from a Java background, is the difference in the design patterns.  Firstly the idea of using Properties instead of get/set.  Also some of the weird ways of doing things like the Synchronized static method on ArrayList which really returns a SyncArrayList (although you wouldn't easily know that looking at their docs).  It seems to me that you may need to rethink the design of gnu.regexp if it is to be built in a C# manner.  If you kept the architecture the same then you would have Java style C# code but that would not make your API intuitive for a native C# developer.

-----Original Message-----
From: Gopal V [mailto:address@hidden]
Sent: Wednesday, November 27, 2002 3:18 AM
To: Wes Biggs
Cc: gnu-regexp-users
Subject: Re: [Fwd: Re: [Regexp] Gnu regexp and port to C#]


If memory serves me right, Wes Biggs wrote:
> The only issue I could think of would be licensing.. from what I can
> tell it looks like Portable.Net is GPL+Exception, which should be
> compatible.

Yes... it's a GNU project after all ... We've to be copyleft ... LGPL fell out of favour as the library uses native methods ... So we just followed the GNU ClassPath model of licensing ..

> Other than that I don't see any real problems, although I'm not
> familiar
> enough with C# to know how straightforward the port would be.

The major issue would IMHO be the behaviour of String.Substring ...

String.Substring(<string>,start,length); // rather than start,end

And of course almost all functions would need their first chars
capitalized ... To comply to the *standard* common in C# ..

The reason I'm asking for someone to help is that , I'm currently
assigned flow analysis in the compiler ... I doubt if I can find time to do the porting effort ...

If this does not work out now ... I'm planning a Java compiler
for DotGNU , and somebody has already started retargetting jikes
to output CIL as well .. (not part of DotGNU)

Gopal
PS: visit http://www.gnu-friends.org/ for an announcement on DotGNU
--
The difference between insanity and genius is measured by success


_______________________________________________
Gnu-regexp-users mailing list
address@hidden http://mail.gnu.org/mailman/listinfo/gnu-regexp-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]