Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

JSL debugging: placeholder for last returned value

☐ cool new feature
☐ could help many users!

☐ removes a „bug“

☑ nice to have

☐ nobody needs it



In Mathematica, one can use "%" as a placeholder for the last returned value.


Could you please implement something similar in JSL?

Could help during debugging:

Run single lines of the original code, add some test code

important: don't mess up the original code lines,

but instead: get access to the return values via the placeholder .

Aditional benefit: work gets focused on "forward direction":

Ah, there is some returned value, how to continue and get most out of it ...

instead of 

How do I have to change the previous code to get access to the returned value.



Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big" );
dt << Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
// during debugging:
gb = %;(gb << XPath( "//AxisBox" )) << select;// or even better:
gb << get XML();
New Window("xml", %)





more wishes submitted by  hogi_2-1702196401638.png

Status changed to: Acknowledged

@hogi Thank you for your suggestion! We have captured your request and will take it under consideration.

Status changed to: Investigating
Status changed to: Not Planned For Now

@hogi thank you for the idea.  After some review, we have decided to not pursue this.