[Gambas-user] Sub and Function hijack ?? is this possible ?

Christof Thalhofer chrisml at deganius.de
Sat Feb 13 20:45:07 CET 2021


Am 13.02.21 um 09:08 schrieb olivier coquet:

> A question to specialists, is it possible to hijack a procedure or
> function?
> Let me explain:
> in my FMain class, I have a procedure:
> 
> public sub maprocédure()

This "é" should nor be allowed in the name of a symbol.

> print "toto"
> end sub
> 
> in a maclasse class, I have a second procedure:
> public sub maprocédure()
> print "titi"
> end sub
> 
> I would like that during a call: maprocédure() in the FMain class, it is
> the one of the maclasse class that runs and not the one of FMain.
> 
> Is this possible?
> and how?

No. The only possibility is that in Fmail you call this:

maclasse.maprocedure()

Alles Gute

Christof Thalhofer

-- 
[x] nail here for new monitor


More information about the User mailing list