Post Reply 
User-defined functions in Free42
01-14-2021, 01:37 AM
Post: #27
RE: User-defined functions in Free42
(01-14-2021 01:34 AM)Paul Dale Wrote:  Putting the stack semantics on the RTN means they are repeated throughout the function if there are multiple returns. This feels bad.

Forth function definitions include the stack diagram at the beginning of the function.

Pauli

What about functions that should have different behaviors depending on the types/values of the inputs? Maybe a function takes two real arguments from the stack, but if X is complex, it only takes one. The COMPLEX function itself is one such example.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: User-defined functions in Free42 - Dave Britten - 01-14-2021 01:37 AM



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