Re: [q-lang-users] Request to add new reserved words "quote" and "QUOTE" to Q
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-05-16 22:39:36
|
Albert Graef scripsit: > Yes, that's right. I'll see what I can do about this. Do you need full > access to the interpreter's command language, or just `def'? (Accessing > the value of a variable is already possible. Just evaluate "<varname>".) Good point, and I think "def" will suffice for now. That allows one to pass a value in to be evaluated by an already-existing expression without having to cons up a new expression. There's a couple of problems with libqint on Cygwin: 1) You have to link with -lqint -lgmp -liconv -lq explicitly in order to satisfy the linker. The -liconv was expected, as Cygwin doesn't have iconv in its default library. Without -lq, it reports: /usr/local/lib/libqint.a(libqint_la-q.o): In function `resolve': /opt/q-7.1/src/q.c:1827: undefined reference to `___libq_init' Should I be using libtool, and if so, how? 2) More seriously, the sample programs in Appendix C crash when trying to pass additional arguments to qexecl and qexeclx, either with a SIGHUP or with a SIGABRT. The poor man's Q interpreter will crash if you give it command-line arguments other than the script, and the hello-world program crashes when it tries to load the internal script. Changing hello.c to use qexeclx(script, strlen(script), 1, strdup("Hello!")); works fine, and changing it to use qexeclx(script, strlen(script), 0) sort of works, except that the value of ARGS is ["/tmp/tc40.2"], Ghu only knows why -- there is no such file. I made a version of hello.c that calls qexeclv instead, but it doesn't help. I realize you probably can't do much about this, but I'm passing it along in hopes that you can think of something. -- A poetical purist named Cowan [that's me: co...@cc...] Once put the rest of us dowan. [on xml-dev] "Your verse would be sweeter http://www.ccil.org/~cowan If it only had metre And rhymes that didn't force me to frowan." [overpacked line!] --Michael Kay |