This is a bug. The recursion point for $: is not being preserved over
the call to (". y), when y is longer than one word.
I can't fix it this instant but I will shortly.
Henry Rich
On 5/31/2020 9:15 AM, 'Pascal Jasmin' via Programming wrote:
wcint =: ( :: ($:@:".)) NB. with convert to int/n
Cannot confirm your error.
But it is a very cool verb(?).
wcint =: ( :: ($:@:".)) NB. with convert to int/num
2 +&(+: wcint) '8' NB. works 4+16
20
2 +&(+: wcint) '4+4' NB. wrong: 8+4
20
JVERSION
Engine: j807/j64/darwin
Release-c: commercial/2019-02-24T10:50:40
Library: 8.07.26
Platf
wcint =: ( :: ($:@:".)) NB. with convert to int/num
2 +&(+: wcint) '8' NB. works 4+16
20
2 +&(+: wcint) '4+4' NB. wrong: 8+4
12
It appears as though if ". argument is a simple number then it "works", but if
an expression, then it doesn't.
---