-
How can overload this symbols? Or do you know a good way to do same? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I don't want to create more files to reach same symbols and for using their different definitions.
|
Beta Was this translation helpful? Give feedback.
-
I'll use overloading for default parameter initialization. |
Beta Was this translation helpful? Give feedback.
-
Hmmm. I think you can't do overloading in a concatenative language, because you don't pass parameters to operators, they are taken from the stack based on the operator logic/signature... Now, in case you have the same number of parameters something could be done, but it's not going to be easy. Not without changing the way signatures work and not without changing symbol lookup. We need a clever idea for this... it would be cool, because that's the reason why |
Beta Was this translation helpful? Give feedback.
-
Look at -> #99 |
Beta Was this translation helpful? Give feedback.
Look at -> #99