Menu

#37 Forward referencing in MUF

open
3
2017-07-30
2002-08-12
Anonymous
No

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...)

Thanks

Discussion

  • Kyle Hamilton

    Kyle Hamilton - 2005-06-14
    • priority: 5 --> 3
    • assigned_to: nobody --> revar
     
  • Wyld

    Wyld - 2017-07-30

    Half done in FB7:

    man $entrypoint
    $ENTRYPOINT <function name=""></function>

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

     

Log in to post a comment.

MongoDB Logo MongoDB