[Mono-list] Writing daemons in C#
Miguel de Icaza
miguel@ximian.com
20 Nov 2002 13:20:05 -0500
Hello,
> a single perl script:
>
> It's better to make the script generate properties:
>
> public static int O_EXCL {
> get {return 0xwhatever;}
> }
The problem with this is that you need to compile the Mono.Posix
assembly once for each operating system where it will be used. It will
certainly work, but we will have different assemblies.
If we are going that way, there is no reason for using this, we might as
well, just use a const:
public const int O_EXCL = 0xwhatever;
Which the compiler can constant fold, so its even better ;-)
I still think that the model I proposed is best, as we dont need a
per-OS assembly to be compiled.
Miguel