fuzzball-muck / fuzzball

Ongoing development of the Fuzzball MUCK server software and associated functionality.
Other
47 stars 27 forks source link

Forward referencing in MUF (SF Issue) #640

Open tanabi opened 3 years ago

tanabi commented 3 years ago

Forward referencing for function names in MUF would be useful... (To avoid having to stuff the address of functions into variables to call them out of order)

Also making the entry point of a program the function named 'main' would allow for organising code in a cleaner way... (To avoid breaking old code this could be done via a new preprocessor directive "$entrypoint <function>", if the directive is missing, the last function in the program is assumed...)

...

man $entrypoint $ENTRYPOINT

Sets the function used to start the program. Defaults to the last one.

aidanPB commented 2 years ago

We could borrow DEFER and related words from the Forth-2012 Core Extensions word set.