gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Re: GM2 Bug no. 3


From: Gaius Mulley
Subject: [Gm2] Re: GM2 Bug no. 3
Date: 19 Oct 2004 11:36:10 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Iztok Kobal <address@hidden> writes:

> GM2 - latest CVS
> 
> #>gm2 -c -Wiso -save-temps -g3 -O3 -gstabs+ -I. A.mod
> A.mod:3:declaration of procedure a in the implementation module
> differs from the definition module, problem with parameter number 1
> (foo) in the definition module the parameter has been declared with a
> different name (oof)
> A.def:3:declaration of procedure a in the implementation module
> differs from the definition module, problem with parameter number 1
> (foo) in the definition module the parameter has been declared with a
> different name (oof)
> 
> 
> I do not like this. Argument types do matter but not their names !

Hi Iztok,

thanks for the various error reports! I'm investigating them at the
moment. As for the above, it is true that many compilers allow
differing names in def/mod files. I should be able to easily modify
gm2 to follow this behaviour, and perhaps have a switch for the
stricter rules which you are currently seeing. I took this course of
action after an experience (tracking down a bug) which cost me a day
or so when I was a relative newcomer to M2. Effectively I switched x,
y coordinates..

Proposal:

  (i)   modify GM2 to allow differing parameter names def/mod
        by default
  (ii)  introduce new switch -Wpedantic-param-names which enforces
        same name parameters in def/mod files.

Any comments from anyone?

Thanks,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]