This worked like a charm! Thanks!
Stan
------------------------------
Stan Blank, Ph.D.
Wayne City High School
Wayne City, IL 62895
------------------------------
"There are 10 kinds of people in the world: Those who understand
binary and those who don't"
Python is one of the most practical language I have experienced
so
far; even more practical than today's Ruby. (Ruby has too many
undiscovered pitfalls and untravelled places, compared to
Python)
Python also has numpy, which is a package for array-oriented
programming, like J. (BTW, youtube's using python isn't rumor.)
To call J from Python, you can use the powerful ctypes
module(j.dll
should reside in the proper place):
from ctypes import *
ppj=oledll.j.JInit()
oledll.j.JDo(ppj,"a=:+/i.100")
0
pi4=[pointer(c_int()) for _ in xrange(4)]
oledll.j.JGetM(ppj,"a",*pi4)
0
c_int.from_address(pi4[3].contents.value).value
4950
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm