Hi Raul,

Your right. The problem is caused by a conflict between strings and
primitives library.

So in primitives, cut is defined as (;.) while in strings it is defined
as (' '&$: :([: -.&a: <;._2@,~))

I guess I need to copy and change ole32.ijs. Unless, of course, anybody
else has a better idea or has a reason why I should use the strings
definition instead of the primitives.

Thanks.

r/alex

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
Sent: Thursday, August 14, 2008 9:20 PM
To: Programming forum
Subject: Re: [Jprogramming] Script Error in general/pcall/ole32

On Thu, Aug 14, 2008 at 6:42 AM, Alex Rufon <[EMAIL PROTECTED]>
wrote:
> Can anybody please try the following script on your copy of J602a?
>
>   load 'general/pcall/ole32'
> |syntax error: script
> |   VTSTR=:    ;<@cut;._2(0 :0)
> |[-164] C:\j602\addons\general\pcall\ole32.ijs
>
> I'm getting a syntax error on my copy which is a fully patch package.
> But this is a bit erratic. Sometimes it works. Hmmm.

The only word whose syntax matters there is the word "cut" which
should have the definition ' '&$: :([: -.&a: <;._2@,~) which comes
from strings which ole32 brings in with the line
require 'dll convert strings general/pcall' at the top of the file.

If strings has already been brought into your session, and if
you redefine cut,your alternative definition will remain.  Perhaps
you have redefined this word somewhere?

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to