Ilya Zakharevich on Fri, 22 Nov 2002 13:02:38 -0800


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

Re: Patch for install: allow to change protoype


On Fri, Nov 22, 2002 at 09:20:02PM +0100, Bill Allombert wrote:
> For example suppose you enter by mistake
> ? install(addsi,GG)
> ? addsi(1,1)
> %1 = 1082894589
> Which is obviously wrong...
> ? install(addsi,LG)
>   ***   Warning: [install] 'addsi' already there. Not replaced.
> NOte: this a warning not an error, so we expect the command to have done
> somathing but
> ? addsi(1,1)
> %2 = 1082894589
> The solution is to do
> ? install(addsi,GG,addsi2)
> but this is awkward.

The solution is

? install(addsi,GG)
? addsi(1,1)
%1 = 5755029
? kill(addsi)
? install(addsi,LG)
? addsi(1,1)
%2 = 2

So isn't it enough to convert the warning to an error?

Ilya