[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Is this by design?
- From: "Curt Carpenter" <curtc@...>
- Date: Wed, 27 Feb 2002 00:08:12 -0800
Lua 4.1 (work3) Copyright (C) 1994-2001 TeCGraf, PUC-Rio
> print("hi\nbye")
hi
Bye
> dostring("print(\"hi\nbye\")")
error: unfinished string;
last token read: `"hi' at line 1 in string "print("hi..."
stack traceback:
1: function `dostring' [C]
2: main of stdin at line 1
>
I would have expected both statements to produce the same result.
Thanks,
Curt