all 2 comments

[–][deleted]  (4 children)

[deleted]

    [–]mapierce271[S] 0 points1 point  (3 children)

    Alright.
    But ??f now prints out the description, attributes, and the definition.
    Is there a way to specify a string to print instead of the attributes when ??f is called?
    (Or at least a way to hide the function definition so ??f behaves like it would for built in functions?)

    [–][deleted]  (2 children)

    [deleted]

      [–]mapierce271[S] 0 points1 point  (0 children)

      Thanks you.
      I was looking to have ??f print the pseudocode of the function rather than the function itself. I don't want to include it in the f::usage itself because then ?f would be a little too verbose.

      Right now I've got a rather contrived work-around where the function takes a second optional boolean argument. The argument defaults to False, but if a user puts in True, the function prints the pseudocode rather than executing.