In the newlisp manual in the "Creating contexts" section it is mentioned that contexts are created
implicitly when referring to a context that does not exist.
This is working in general but if i use a single character as a context name then it fails with the following error
If i try to do this
That is correct, it failed for bharath_g, because the variable already existed. But you can convert an already existing variable to a context using the context function:
> (set 'D 123)
123
> (define D:foo 456)
ERR: context expected in function define : D
> (context 'D "foo" 456) ;<-- but this will work
456
> D:foo
456
>
it's only the implicit creation which is not allowed on existing variables. It also works for functions: