Page 1 of 1

[FIXED]wonky hidden subscript execution

Posted: 19 Sep 2017 20:56
by bdeshi

Code: Select all

"visible : visible"
  echo "visible subscript runs";
"_hidden : hidden"
  echo "hidden subscript runs";
"_hidden" is executed instead of "visible". What gives?

[edited subject]

Re: wonky subscript execution with exactly one visible subscript

Posted: 20 Sep 2017 00:28
by PeterH
Maybe change
"_hidden : hidden"
to
"hidden : _hidden"
(I didn't study syntax - I just tried it :titter: )

Re: wonky subscript execution with exactly one visible subscript

Posted: 20 Sep 2017 06:34
by bdeshi
That's not the issue. Why is _hidden running? If XY thinks it's not hidden, I should get a multi-script menu with both visible and hidden.

Re: wonky subscript execution with exactly one visible subscript

Posted: 20 Sep 2017 10:31
by admin
Yep, that's a bug. Fix comes. Thanks!

Re: wonky subscript execution with exactly one visible subscript

Posted: 20 Sep 2017 10:46
by PeterH
OK, you're right. Now having read it, syntax says:

Code: Select all

To hide a script simply prefix an underscore to the caption or label (a hidden script does not need a caption anyway). 
So the underscore should work in both situations.

And, as mentioned here, the caption for a hidden script has no function. So I'm used to just define the label with underscore, and all works well.

In the end: no need to use a caption in this case, but it is a bug nevertheless.

Re: wonky hidden subscript execution

Posted: 21 Sep 2017 19:10
by bdeshi
:bug: :blackstorm: . :tup: