Re: another error i can't figure

new topic     » goto parent     » topic index » view thread      » older message » newer message

>The standard work
>arounds on offer are:
>
>   object VOID (or junk)
>   if    equal('o',newmodes[1]) then VOID = on_op(nicks[1]) ...
>
>or
>
>   procedure o_op_proc(object x)
>   end procedure
>   if    equal('o',newmodes[1]) then on_op_proc(nicks[1]) ...
>
>both are not pretty.

Or, another way:

procedure ignore (object x)
    x = x -- just to avoid warning about unused parameter
end procedure

So, you just do

if equal ('o', newmodes[1]) then ignore (on_op (nicks[1]))

You can, than, put procedure 'ignore' in, say, miscx.e:

---- miscx.e ----
include misc.e

global procedure ingore ...
...
end procedure 
---- end of miscx.e ----

And, instead of misc.e, you always use miscx.w

Regards...
Alexa

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu