Post Reply 
one or two arguments
11-13-2022, 04:15 PM
Post: #2
RE: one or two arguments
Since the firmware version released in Spring 2021, it’s possible to have two functions with the same name as long as they have a different number of arguments.

So in your case you can do:

Code:
EXPORT metto(a)
BEGIN
 a^2;
END;

EXPORT metto(a,b)
BEGIN
 a*b;
END;

This works on the real calculator and windows emulator but this is not yet implemented on the IOS and Android emulators.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
one or two arguments - robmio - 11-13-2022, 03:50 PM
RE: one or two arguments - Didier Lachieze - 11-13-2022 04:15 PM
RE: one or two arguments - robmio - 11-13-2022, 04:24 PM
RE: one or two arguments - ctrclckws - 11-13-2022, 04:44 PM
RE: one or two arguments - toml_12953 - 11-13-2022, 04:47 PM
RE: one or two arguments - robmio - 11-13-2022, 04:54 PM



User(s) browsing this thread: 1 Guest(s)