[text] and [/text]

Q&A's, tips, howto's

[text] and [/text]

Postby eddier » Thu Sep 11, 2003 1:32 pm

(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
eddier
 
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Postby Lutz » Thu Sep 11, 2003 11:29 pm

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
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Postby eddier » Fri Sep 12, 2003 12:37 pm

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
eddier
 
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Postby Lutz » Fri Sep 12, 2003 5:27 pm

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
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron