Post Reply 
one or two arguments
11-13-2022, 04:47 PM
Post: #5
RE: one or two arguments
(11-13-2022 04:44 PM)ctrclckws Wrote:  This feature is called overloading.
The compiler or interpreter would know which one to use, based on.the number of parameters.

Really smart systems would be able to determine the type of data in the parameters and use that as well to make the decision on which flavor to call.

I'd use that to call the same function, such as sorting, for both numbers and strings.

Tom L
Cui bono?
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)