cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
hogi
Level XII

What's wrong here?

Caution - JMP will crash!!!

 

Names Default To Here( 1 );

f = Function( {}, 
	iconID = Associative Array( {{Name Expr(), 1}, {Expr(), 2}, {Function(), 3}}, 0 );
);
f();


removing the function() from the list fixes the error.
Taking the associative array out of the outer function fixes the error.

2 REPLIES 2
txnelson
Super User

Re: What's wrong here?

It sure does blow JMP away.  You just invented a new fast way to exit from a JMP session......

 

This needs to go to JMP Support!   Things like this are not supposed to happen.

Jim
hogi
Level XII

Re: What's wrong here?

I have another one:

x = Expr(Function());

Show(name Expr(x) == Expr(Function()));
Print("not dead");

f = function({arg},
name Expr(arg) == Expr(Function()))

outside of the function the comparison of x with Function () is OK.

Inside of the function, JMP will already crash when it sees the command - no need to call f.