why does this not halt?

27 views
Skip to first unread message

Jack Andrews

unread,
Apr 19, 2012, 7:23:55 AM4/19/12
to Kdb+ Personal Developers
i:1;while[~i=3;{x::y}[`i;3]]

Charles Skelton

unread,
Apr 19, 2012, 8:14:55 AM4/19/12
to personal...@googlegroups.com
because it is setting local x to 3.
inside a function, :: sets global when the local is not defined.
here x is implicit arg.
 
use set instead
Reply all
Reply to author
Forward
0 new messages