[BLACKBOX] overloaded procedures in GP-CP

From: VDI <bernhardt.gunnar{([at]})nowhere.xy>
Date: Wed, 3 Nov 2010 22:44:25 +0100

Dear all,

a usefull feature of the GP-CP compiler for .NET is that it warns you
 about "Multiple overloaded procedure signatures".
You may encounter them if for example you output to console or to
 files with the .NET System.XYZ libraries.

Unfortunately they tend to obscure the remaining compiler messages.
 Consider the following sequence:

================================================
old behaviour without new compiler option
------------------------------------------------
#gpcp: Emitted z1_comosScript.EXE
z1_comosScript.cp(13,46) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(13,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(13,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(14,54) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(14,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(14,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(15,50) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(15,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(15,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(16,42) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(16,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(16,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(17,55) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(17,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(17,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(18,29) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(18,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(18,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(19,48) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(19,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(19,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(20,42) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(20,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(20,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(21,57) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(21,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(21,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(22,55) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(22,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(22,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(23,59) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(23,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(23,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(24,30) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(24,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(24,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(25,30) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(25,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(25,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(26,37) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(26,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(26,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(32,38) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(32,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(32,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(36,11) : warning : Warning: This procedure is not
 exported, called or assigned
z1_comosScript.cp(106,9) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(106,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(106,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(129,46) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(129,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(129,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(134,63) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(134,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(134,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(135,69) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(135,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(135,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
z1_comosScript.cp(137,43) : warning : Warning: Multiple overloaded
 procedure signatures match this call
z1_comosScript.cp(137,255) : warning : Matches with -
 WriteLine(mscorlib_System.Object)
z1_comosScript.cp(137,255) : warning : Bound to -
 WriteLine(mscorlib_System.String)
================================================

It is pretty hard to spot important warnings or even error messages in
 there.

So I implemented a new Compileroption to disable these warnings:
 -ignoreMulOverl
The compiler output will then look like this:

================================================
with new compiler option: -ignoreMulOverl
------------------------------------------------
#gpcp: Emitted z1_comosScript.EXE
z1_comosScript.cp(36,11) : warning : Warning: This procedure is not
 exported, called or assigned
================================================

In case some of you might find this useful I include the modified
 source files (taken from version 1.3.9).
My few modifications have been marked with the current date and "GUB".


I want to express my sincere gratitude to the compiler author(s) for
 writing such easily accessible code!


kind regards
gunnar

 


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy





Received on Wed Nov 03 2010 - 22:44:25 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:28 UTC