Search found 6 matches

by limux
Sat Nov 02, 2013 2:18 pm
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Re: Bug of (context Foo)?

Very thanks and Best Regards.
by limux
Sat Nov 02, 2013 1:00 pm
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Re: Bug of (context Foo)?

even (symbol? Foo) will implicit introduce a symbol. That is newLisp style!
by limux
Sat Nov 02, 2013 12:53 pm
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Re: Bug of (context Foo)?

I see, great thanks!

Foo introduced the "Foo" as a symbol with value of nil.
and (context Foo) also implicit introduce the symbol "Foo", although throw a error
"ERR: symbol or context expected in function context : Foo",

Is it right?

I should to read the source of newLisp I think.
by limux
Sat Nov 02, 2013 11:25 am
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Re: Bug of (context Foo)?

Please see detailed the following code and is there any issue? > (set 'Foo1:var1 nil) nil > (context? Foo1) true > (context Foo2) ERR: symbol or context expected in function context : Foo2 > (set 'Foo2:var2 nil) ERR: context expected in function set : Foo2 > (context? Foo2) nil > (set 'Foo2:var2 nil...
by limux
Sat Nov 02, 2013 6:54 am
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Re: Bug of (context Foo)?

I am not forgot the quote, I just do that. Because (context Foo) is the first code line. It's surely failed. The question is once that code be evaluted, I wonder why the (set 'Foo:name nil) also will be failed. but in a new clean newlisp instance, the (set 'Foo:name nil) will be ok without evaluated...
by limux
Fri Nov 01, 2013 4:21 pm
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 7380

Bug of (context Foo)?

the code

Code: Select all

(set 'Foo:name "limux")
(context Foo)
is ok.

but

Code: Select all

(context Foo)
(set 'Foo:name "limux")
is bad.

I think the bug is if you run the "(context Foo)" first, then "(set 'Foo:name "limux")"
will always report error.

Great thanks for more details about context or demo code!