[Mono-list] perl script -- alternative?

Erick mono@erick.com
Thu, 18 Apr 2002 17:11:11 -0500 (CDT)


It works - kinda.  Still wont open the file, but echos it.  Redirection in 
dos is much the same as *nix.  >> = append, > = overwrite

Erick



Current output:

D:\mono>mono.pl test.def --debug
DEBUG: OS = 'MSWin32'
DEBUG: OS recognized?... yes
DEBUG: PATH = 'D:\mono'
DEBUG: Class Definition = //

DEBUG: Class = '//
'
DEBUG: NAMESPACE = 'mono'
DEBUG: VERBOSITY = 0
WARNING: Could not open //
.cs for writing
         sending output to STDOUT
//
// mono.//

//
// Author:
//   stubbed out by public class TestClass : CommonDialog

//
// (C) 2002 Ximian, Inc
//

namespace mono
{
        public //

        {
                // --- Public Properties
                //
                [MonoTODO]
                public bool AllowScriptChange
                {
                        get { throw new NotImplementedException (); }
                        set { throw new NotImplementedException (); }
                }
                [MonoTODO]
                public bool AllowSimululations
                {
                        get { throw new NotImplementedException (); }
                        set { throw new NotImplementedException (); }
                }
                [MonoTODO]
                public bool AllowVectorForms
                {
                        get { throw new NotImplementedException (); }
                        set { throw new NotImplementedException (); }
                }
                [MonoTODO]
                public bool AllowVerticalForms
                {
                        get { throw new NotImplementedException (); }
                        set { throw new NotImplementedException (); }
                }
        }
}

D:\mono>




On Thu, 18 Apr 2002, Daniel Carrera wrote:

Here's another file.

Erik wrote:
...
> D:\mono>autogen.pl test.def --debug
> DEBUG: OS = 'MSWin32'
> DEBUG: OS recognized?... yes
> DEBUG: PATH = 'D:\mono
> '
> DEBUG: NAMESPACE = 'mono
> '
> DEBUG: VERBOSITY = 0
> ERROR: Could not open //.cs for writing

I think that this is because Windows terminates lines with the \r\f
characters instead of \n.  I think I've fixed that.  Again, I only have
Linux to test on.

Also, if it still can't open the right file, the program won't die.
Instead, it will print to STDOUT.

Can you redirect output in Windows?




On Thu, 18 Apr 2002, Jaak Simm wrote:
...
> If I am not mistaken unimplemented events should look something like this:
>
>   [MonoTODO]
>   public event ConvertEventHandler Format
>   {
>    add { throw new NotImplementedException (); }
>    remove { throw new NotImplementedException (); }
>   }

Thanks.  Actually, I thought that events were like methods.  Now you can
type events likeso:

SomeEvent{ar}

It behaves just like properties.  The a's are replaced by the 'add' lines,
and the r's by the remove's.

Do you always have to have both when you implement evetns?
If not, how do you know which one to put in?



Thank you both for the help.

Cheers,
Daniel.