Boriel Basic Forum
Function Overloading - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Wishlist (https://forum.boriel.com/forumdisplay.php?fid=14)
+---- Thread: Function Overloading (/showthread.php?tid=411)



Function Overloading - britlion - 2011-12-02

It would be nice if overloading was supported - functions and subroutines of the same name with different parameters.

For example:

change(ubyte ink, ubyte paper) could change the attributes for the whole screen to a specific ink/paper value without clearing it.
change() sets them to the current permanent colours...
change (ubyte ink, ubyte paper, ubyte start_row, ubyte end_row) could change just part of the screen...

And so on and so forth.


Re: Function Overloading - boriel - 2011-12-22

I agree :-)
And think it could be implemented. I'm currently busy in other business (not dead!), so please be patient.
BTW Merry Christmas to you ALL :!: :wink:


Re: Function Overloading - slenkar - 2011-12-22

merry christmas !!


Re: Function Overloading - LCD - 2011-12-24

Merry Xmas for you too, and check out the Gallery Wink.