Search found 8 matches
- Sun Apr 21, 2013 7:07 am
- Forum: newLISP in the real world
- Topic: `string' generates [text] [/text] markup instead of quotes
- Replies: 6
- Views: 4356
Re: `string' generates [text] [/text] markup instead of quot
I've tested again using other source strings, and the error occurs again. It seems that this error is not caused by the `string' command, but the representation of long string with quotes. That is, we have to represent long string in the format [text] long string [/text] or {long string} instead of ...
- Sun Apr 21, 2013 2:13 am
- Forum: newLISP in the real world
- Topic: `string' generates [text] [/text] markup instead of quotes
- Replies: 6
- Views: 4356
Re: `string' generates [text] [/text] markup instead of quot
I just found that it directly captures the ouput of newlisp from stdout, I will search for some other ways to solve. Anyway, I encountered another problem, maybe a bug? it's that read-expr and eval-string will report ERR: string token too long : ...(some string)... if the length token is greater tha...
- Sat Apr 20, 2013 3:06 pm
- Forum: newLISP in the real world
- Topic: `string' generates [text] [/text] markup instead of quotes
- Replies: 6
- Views: 4356
`string' generates [text] [/text] markup instead of quotes
Normally, functions string will wrap the contents with quotes, just like: (string '(a b c)) => "(a b c)" but when the text becomes too long, then it will wrap it with [text][/text] markup instead of quotes("). Is there a way to keep using quotes? (string (symbols)) => "(...)" instead of (string (sym...
- Sun Apr 14, 2013 1:47 am
- Forum: newLISP newS
- Topic: Built-in, unlimited precision, big integer arithmetik
- Replies: 18
- Views: 25394
Re: Built-in, unlimited precision, big integer arithmetik
Thanks Lutz.
It's very nice to feel that the tool in hand becomes much more powerful.
Works all right under Linux for now.
It's very nice to feel that the tool in hand becomes much more powerful.
Works all right under Linux for now.
- Fri Mar 22, 2013 2:10 pm
- Forum: Whither newLISP?
- Topic: Howto Solve Context Collision
- Replies: 12
- Views: 22292
Re: Howto Solve Context Collision
This trick works!
And I think we should always use this trick when using a context as a data
container inside a module.
Thanks again for being so patient. And surely I will stay with newlisp, it is
just amazing.
And I think we should always use this trick when using a context as a data
container inside a module.
Thanks again for being so patient. And surely I will stay with newlisp, it is
just amazing.
- Thu Mar 21, 2013 7:02 am
- Forum: Whither newLISP?
- Topic: Howto Solve Context Collision
- Replies: 12
- Views: 22292
Re: Howto Solve Context Collision
Thank you very much Lutz. Now I have more confidence in using dynamic scope. And understand that we can avoid variable capture by putting macros(fexprs) into a seperate context, and use it inside another context. Without interactions, no variable caputure will ever happen to macros(fexprs). Just for...
- Wed Mar 20, 2013 6:23 am
- Forum: Whither newLISP?
- Topic: Howto Solve Context Collision
- Replies: 12
- Views: 22292
Re: Howto Solve Context Collision
Use only one context per module file. Different programmers maintain different contexts. The MAIN context is the only place where other contexts should be loaded and controls the main organization of the program and is maintained by a lead programmer. No context should redefine functions during run...
- Wed Mar 20, 2013 4:45 am
- Forum: Whither newLISP?
- Topic: Howto Solve Context Collision
- Replies: 12
- Views: 22292
Howto Solve Context Collision
I am new to newLISP, and just can't find out how to solve this problem. As we know, we can surround a macro to avoid variable capture. But if we write two diffierent modules without knowing the other one, we might encounter a context collision, i.e. useing the same name for context. here is an examp...