[text] and [/text]

Q&A's, tips, howto's
Locked
eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

[text] and [/text]

Post by eddier »

(print [text]
<html>
</html>
[/text])

gives nilnilnilnil on Windoze, but works fine on Linux. I've downloaded the Windoze version twice but still get the same results. Does anyone else get this result on Windoze?

Eddie

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

works fine for me on win32 and cygwin versions 7.1.4. How extactly did you you test? I put your lines in a file named 'text' with an (exit) at the end:

(print [text]
<html>
</html>
[/text])
(exit)

and then do a:

newlisp test

which then will output

<html>
</htm>

Are you sure you are using the right version on Windows? Of course you cannot enter this in the console, except if you do it on one line, not multiple lines, but in a file it works fine.

Lutz

eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Post by eddier »

Before I downloaded a third installation this morning, I had a file called test.lsp with

Code: Select all

(print [text]
<html>
</html>
[/text])

(exit)
It returned nilnilnilnil

The new download fixed the problem.

Eddie

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

it must have been a version, which did not have [text] tags yet and printed a 'nil' for each of the four unkown tokens / uninitialized symbols.

Lutz

Locked