Partial is a keyword introduced in .NET 2.0 so you could span classes over
multiple .cs files (you declare each .cs file as a "partial class"). So it's
a bad idea for it to be used as a variable name. File a bug report i
suppose.
Alan.
On 11/23/06, Peter Vandenabeele <[EMAIL PROTECTED]> wrote:
On 11/21/06, Peter Vandenabeele <[EMAIL PROTECTED]> wrote:
...
> But make after succesfully compiling large parts, gives this error:
>
> make[8]: Entering directory
> `/home/user/ODF/Add-in/mono-HEAD-001/mcs/class/Managed.Windows.Forms'
> MONO_PATH="../../class/lib/default:$MONO_PATH"
> /home/user/ODF/Add-in/mono-HEAD-001/mono/runtime/mono-wrapper
> ../../class/lib/default/mcs.exe /codepage:65001 -d:NET_1_1
> -d:ONLY_1_1 -debug /noconfig /unsafe /r:mscorlib.dll /r:System.dll
> /r:System.Xml.dll /r:System.Drawing.dll /r:Accessibility.dll
> /r:System.Data.dll /r:Mono.Posix.dll
> @System.Windows.Forms.dll.resources /nowarn:649 /nowarn:169 /nowarn:67
> /nowarn:108 /nowarn:114 -debug -target:library
> -out:../../class/lib/default/System.Windows.Forms.dll
> @System.Windows.Forms.dll.sources
> System.Windows.Forms/ComboBox.cs(886,19): error CS0267: The `partial'
> modifier can be used only immediately before keyword `class',
> `struct', or `interface'
Actually, I now have the impression (?) that 'partial' is a reserved word
in
the version of the compiler I am using here (I assume that would be mcs).
The word 'partial' is used as a regular (local) variable in a few
occasions:
[EMAIL PROTECTED]:~/ODF/Add-in/mono-HEAD-001$ grep partial
./mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs.ORIG
bool partial;
partial =
false;
partial = true;
partial = true;
partial = true;
// no partially selected tags here, simple checks...
if
(!partial) {
[EMAIL PROTECTED]:~/ODF/Add-in/mono-HEAD-001$ grep partial
./mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs.ORIG
int partial =
(lb_height - 2 * border) % ItemHeight;
height -= partial;
[EMAIL PROTECTED]:~/ODF/Add-in/mono-HEAD-001$ grep partial
./mcs/tools/mono-shlib-cop/mono-shlib-cop.cs.ORIG
public void CheckWithPartialName (string partial,
AssemblyCheckInfo report)
string p = partial;
"Could not load assembly
reference `" + partial + "'."));
[Option (int.MaxValue, "Assemblies to load by partial
names (e.g. from the GAC)", 'r')]
I replaced the occurances of 'partial' by 'partial_' and that got me
through the
complete make step for mono HEAD.
Could anyone please confirm if I made the correct updates to source (or am
I
using an incorrect tool chain or making some other error).
Thanks upfront for any help here,
Peter
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list