Am I missing something?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
$ pwd
/home/statik/
$ cat code/test.lsp
(println (real-path))
(exit)
$ newlisp code/test.lsp
/home/statik/
$
$ set
(context 'MYCONTEXT)
(define (myfunc , )
(println MAIN:a)
)
(context 'MAIN)
(setq a 10)
(MYCONTEXT:myfunc)
(context 'MYCONTEXT)
(define (myfunc value , )
(println myfunc)
)
(context 'MAIN)
(setq a 10)
(MYCONTEXT:myfunc a)
(setq a 1)
(setq b 2)
(setq c 3)
(setq d 1)
(case d
(a (do-this))
(b (do-that))
(c (do-something))
(true)
)
=> nil
(setq a 1)
(setq b 2)
(setq c 3)
(setq d 1)
(case d
((eval a) (do-this))
((eval b) (do-that))
((eval c) (do-something))
(true)
)
=> nil