Re: I've ported CLI to C#, next steps?

2008-04-27 Thread Schley Andrew Kutz
crt On Apr 27, 2008, at 4:55 PM, J.Pietschmann wrote: Emmanuel Bourg wrote: Schley Andrew Kutz a écrit : - Class level variables are now prefixed with "m_". ... I personally dislike this convention. Since modern IDE highlight class members and put nice icons in front of the cl

[cli] C# port passes 80/81 unit tests / Bug found in Parser.java::ProcessProperties

2008-04-27 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The C# is almost 100% compatible with real deal, except for 1 remaining unit test. The reason the port cannot pass this test is because there is a bug in Parser.java - ProcessProperties. The relevant code bits are: if (opt.hasA

[cli] In C# port Option type is now stored as Type instead of Object

2008-04-27 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I didn't see a reason that the Option's type should be stored as an instance of a given type when the Type class exists, thus I am now storing the type as a Type. I did not change this simply to suit my own preclusions, but rather it is much eas

[cli] Option class must be serializable in C# port

2008-04-26 Thread Schley Andrew Kutz
In C# all classes derive from Object, just like Java. Even primitive types are automatically boxed and unboxed into Object-derived subclasses, just like Java. For a class to be cloneable it must implement the interface ICloneable and the method 'public object Clone()', just like Java. Howev

Re: I've ported CLI to C#, next steps?

2008-04-26 Thread Schley Andrew Kutz
eations ca: http://www.lostcreations.com/lostcreations.com-ca.crt On Apr 26, 2008, at 11:32 AM, sebb wrote: 2008/4/25 Schley Andrew Kutz <[EMAIL PROTECTED]>: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In C# you cannot reference a static method, field, or property accessor from an in

Re: [cli] bug found in ApplicationTest.java

2008-04-26 Thread Schley Andrew Kutz
) On Sat, Apr 26, 2008 at 6:21 AM, Schley Andrew Kutz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think I found a bug in the GNU parser unit test in ApplicationTest.java - --- // use the GNU parser CommandLineParser parser = new GnuParser( );

[cli] bug found in ApplicationTest.java

2008-04-26 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think I found a bug in the GNU parser unit test in ApplicationTest.java - --- // use the GNU parser CommandLineParser parser = new GnuParser( ); Options options = new Options(); options.addOption( "help", false, "print t

Re: I've ported CLI to C#, next steps?

2008-04-25 Thread Schley Andrew Kutz
om the vapor of nuance" gpg pubkey: http://www.lostcreations.com/~akutz/akutz.gpg lostcreations ca: http://www.lostcreations.com/lostcreations.com-ca.crt On Apr 25, 2008, at 4:43 PM, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Damn Java and its allowing you to a

Re: I've ported CLI to C#, next steps?

2008-04-25 Thread Schley Andrew Kutz
http://www.lostcreations.com/~akutz/akutz.gpg lostcreations ca: http://www.lostcreations.com/lostcreations.com-ca.crt On Apr 25, 2008, at 12:47 PM, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'll change the license as soon as I get done creating unit tests. Two fi

Re: I've ported CLI to C#, next steps?

2008-04-25 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'll change the license as soon as I get done creating unit tests. Two files down, blarg to go. The WIKI was updated with links to the code. - -- - -a "condensing fact from the vapor of nuance" gpg pubkey: http://www.lostcreations.com/~a

Re: I've ported CLI to C#, next steps?

2008-04-25 Thread Schley Andrew Kutz
tions ca: http://www.lostcreations.com/lostcreations.com-ca.crt On Apr 25, 2008, at 7:07 AM, Emmanuel Bourg wrote: Did you port the test cases too ? That might be useful to ensure that it is equivalent to Commons CLI. Emmanuel Bourg Schley Andrew Kutz a écrit : -BEGIN PGP SIGNED ME

Re: I've ported CLI to C#, next steps?

2008-04-25 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 FYI - I've uploaded the code to my site at http://code.lostcreations.com/browser/trunk/lib/csharp/CLI . - -- - -a "condensing fact from the vapor of nuance" gpg pubkey: http://www.lostcreations.com/~akutz/akutz.gpg lostcreations ca: http

Re: I've ported CLI to C#, next steps?

2008-04-24 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 VisualStudio *is* the world's greatest IDE. I love it. I use NetBeans for Java (anyone tell me how to get the darn thing to show whitespace chars!?!?!) and Komodo for Perl. IDEs aside, it is very nice to be able to glance at a function and know

Re: I've ported CLI to C#, next steps?

2008-04-24 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, I started devving for MS before migrating to Linux and OS X, so I do retain some of those practices. - -- - -a "condensing fact from the vapor of nuance" gpg pubkey: http://www.lostcreations.com/~akutz/akutz.gpg lostcreations ca:

Re: I've ported CLI to C#, next steps?

2008-04-24 Thread Schley Andrew Kutz
tz/akutz.gpg lostcreations ca: http://www.lostcreations.com/lostcreations.com-ca.crt On Apr 24, 2008, at 3:50 PM, Emmanuel Bourg wrote: Schley Andrew Kutz a écrit : - Class level variables are now prefixed with "m_". - Interfaces now begin with upper case "I". Ex. CommandLineP

I've ported CLI to C#, next steps?

2008-04-24 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I've ported version 1.1 of the CLI library to Microsoft .NET 2.0 using C#. My reasons are not selfless -- I simply needed a good command line argument parsing library for .NET, and I could not find one. Instead of reinventing the wheel I dec