Function only works the first time

33 views
Skip to first unread message

Adam

unread,
Oct 30, 2019, 7:45:29 AM10/30/19
to Kona Users
 Not sure why, but defining deltas without parens works, but only the first time, the second variant works repeatedly.  What's going on here?

 ds:{-':x}
  a: 1 2 3
  ds a
1 1
  ds a

  ds:{(-':x)}
  ds a
1 1
  ds a
1 1

pahihu

unread,
Oct 30, 2019, 8:44:34 AM10/30/19
to Kona Users
Using https://github.com/pahihu/kona on macOS 10.13.6 gives me

  ds:{-':x}
  a:1 2 3
  ds a
1 1
  ds a
1 1
  ds a
1 1

pahihu

Adam

unread,
Oct 30, 2019, 9:55:41 AM10/30/19
to Kona Users
On Ubuntu I also get the correct result on this branch.
I do so other odd behaviour though, such as the result of a scan being invisible in the console
For instance
  {o:1;y}\ (1 2 3)
  a:{o:1;y}\ (1 2 3)
  a
1 2 3

In kevinlawler/kona and in k4, both line would print the result

Tom Szczesny

unread,
Oct 30, 2019, 5:59:25 PM10/30/19
to kona...@googlegroups.com
Hey Adam --

Thanks for spotting this bug.
It was introduced in the commit made on September 1, 2019 that attempted to fix issue #521: Recursive call overrides earlier data



--
You received this message because you are subscribed to the Google Groups "Kona Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kona-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kona-user/23b3e7c2-b97f-4cab-a9d5-71b7c9734091%40googlegroups.com.

pahihu

unread,
Oct 31, 2019, 4:42:26 AM10/31/19
to Kona Users
Sure, you should use kevinlawler/kona as the master repository.
When you try pahihu/kona you have to use the misc_fixes branch not the master.

pahihu
Reply all
Reply to author
Forward
0 new messages