The Dictionary states:
'A character list provided with zero or more frets will be called a script.'
It continues to give an example using entry with 0 : 0 in a file, but that
is not the only way a valid script may be generated and saved as a noun.
The following example provides a script in the noun b which is not executed
by 0!:1 . Obviously the present treatment of the foreign conjunction does
not make provision for reading from the noun 'input device'.
The problem can arise with any definition using : 0 in a noun representing
a script.
Fraser
=======================
NB. Construct a script file containing
require 'files'
g =: 0 : 0
test1 =: 0 : 0
3 = 3
)
g =: g,')',LF
g fwrite 'temp\6.ijs'
NB. read the script file to get
b =: 'm' fread 'temp\6.ijs'
0!:1 b
================================
----- Original Message -----
From: "Eric Iverson" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Monday, August 21, 2006 1:05 AM
Subject: Re: [Jprogramming] Drawing program in J?
The form editor, plot, grid, opengl and other examples are all done in an
isigraph control. The code is open for your inspection and borrowing and
I'm sure you would get useful help from forum members on specific
problems. As sketched out I see no reason you couldn't do your application
entirely in J.
If you were familiar with Tcl/Tk or Perl/Tk you might find it easier to do
the graphics part of your application there, but the tradeoff is
additional complexity in the interface with the 'data processing' part of
the application in J.
An approach is to have a very clean line between the graphics and dp part
of the application and start by building both in J. Then if you run into a
brick wall, or perhaps just decide it really would be easy in another
language, you can move over the graphics part.
----- Original Message -----
From: "Ronan Reilly" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Sunday, August 20, 2006 6:24 AM
Subject: [Jprogramming] Drawing program in J?
I'm planning to write a drawing program that needs to communicate with J.
Functionally, the programme is intended to be a tool for creating
something
like UML diagrams (boxes, arrows, and some code generation). Actually,
the
form editor seems to have some of the functionality I need.
Ideally I'd like to be able to do it all in J, but it's unclear to me
from
the form and openGL documentation how easy this would be. For example,
would I be better off using, say, Tcl/Tk or Perl/Tk for the graphics and
communicating to the JE via sockets?
Any suggestions/advice would be appreciated.
Ronan
--
Ronan Reilly
Department of Computer Science
NUI Maynooth
Maynooth
Co. Kildare
IRELAND
t: +353-1-7083847
e: [EMAIL PROTECTED]
w: http://www.cs.nuim.ie; http://cortex.cs.nuim.ie
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm