Variable type in function call

BlitzMax Forums/BlitzMax Programming/Variable type in function call

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

That's possible, of course.
My idea was setting a color by its RGB (int) values or by another color instance using the same method but I think it is not a very good idea to try to use such a flexible method after all.
This all started when I came to the situation where I wanted to set the color of an object where the data for that color was already stored in a TColor-object. So, I thought instead of:
SetTheColor(clr.GetRed(), clr.Get.Green(), clr.GetBlue())

perhaps I can write:
SetTheColor(clr)

It looked like an elegant implementation but I think it's not. Better write two separate methods.
Sorry, bothering you.