in_prompts fold with side effects

5 views
Skip to first unread message

Kyle Johnson

unread,
Jul 19, 2019, 11:33:23 AM7/19/19
to mathpiper-dev
I recently ran into an issue while reformatting an *E.G. into *EXAMPLE with an in_prompt fold that I'm not sure how to handle. 

Side Effects within the in_prompts fold fail and I haven't had to deal with this as of yet so I do not have a precedent to go off of.

For example, I am trying to reformat these lines of code to include the Side Effects in the documentation:

*E.G.

In> Echo([Hold(1+1), "=", 1+1]);
Result: True
Side Effects:
[1+1,"=",2] 

Let me know your suggestions on how to reformat this code!

Thanks,
Kyle

Ted Kosan

unread,
Jul 19, 2019, 12:57:26 PM7/19/19
to mathpi...@googlegroups.com
Kyle,

Look at the "in_prompts" fold which is in
src/library_apps/mathpiper4/src/org/mathpiper/scripts4/unparsers/CUnparsable_.mpws
for an example of how to handle side effects.

Ted
> --
> You received this message because you are subscribed to the Google Groups "mathpiper-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mathpiper-dev/4fbe6ff0-78a9-4e33-adbb-823f8cd0697d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages