Hi Thorsten,
hmm, this is not correct:
> (de pnorm_both ("X" "Y" "Z" "I" "J")
> (! native `*LibRmath "pnorm_both" 1.0 (cons "X" 1.0) '("Y" (1.0 . 4))
> '("Z" (1.0 . 4)) "I" "J" ) )
"Z" is an argument to the function, so it is bound to some evaluated value.
But this value is ignored,
Hi Alex,
I actually do use a namespace, and there is not much going on wrt to
assignments:
>From line 8 on there are only some 100+ mostly trivial wrapper functions,
see PS. I first thought it might have something to do with Picolisp
Linebreaks "delta J", but I have seen the same issue now with an
On Sun, Nov 15, 2020 at 06:44:20PM +0100, Alexander Burger wrote:
> So somewhere 'J' is bound to "J".
> ...
> Right, so it is a binding issue. Think hard what values are exactly bound to
> which variables at runtime.
I forgot to add:
You can perhaps see what is happening, by inspecting a
Hi Thorsten,
> But with my real wrapper functions, where ever I use J, as first or second
> arg, its interpreted as a transient symbol
So somewhere 'J' is bound to "J".
> But when I rename J to H in my real wrapper function, the problem is gone:
Right, so it is a binding issue. Think hard
Hi Alex,
this is strange indeed.
I checked on Bash/Archlinux as well, same problem as Win Term / WSL2, so
this is not about WSL or so.
I can like you define a dummy wrapper, and debug it, and it looks fine:
: (de foo (I J) (! native NIL NIL 1.0 I J))
-> foo
: (foo 2 3)
(native NIL NIL 1 I J)
! J
On Sun, Nov 15, 2020 at 09:20:36AM +0100, Alexander Burger wrote:
> Hi Erik,
>
> > More 'macro' madness and lisp jokes to brighten your weekend
> >
> > https://github.com/erdg/pl-defmacro
>
> Nice! Lots of fun indeed! :)
.. and very impressing! You are a power-picolisper!
☺/ A!ex
--
Hi Erik,
> More 'macro' madness and lisp jokes to brighten your weekend
>
> https://github.com/erdg/pl-defmacro
Nice! Lots of fun indeed! :)
☺/ A!ex
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Hi Thorsten,
> (de pwilcox (X Y Z I J)
> ...
> : (rmath~pwilcox 2.7 6.20 5.4 1 3)
> (native "libRmath.so" "pwilcox" 1 (cons X 1) (cons Y 1) (cons Z 1) I "J")
> ...
> ! J
> -> NIL
> Why is that second Integer argument interpreted as transient symbol, and
> then NIL although the actual arg = 3?