TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: AIberto on August 18, 2015, 07:10:51 AM
-
Dear all
Before appload lisp (fas ,vlx ) , record global variables. (can use "atoms-family" func ?)
After appload lisp (fas, vlx) , record global variables.
Than ,get a list of global variables. Is this possible?
I've done a little bit of searching for this, but have not found what I've needed.
but would like to know if anyone has come up with a lisp or other solution.
BTW
I see an article "A Shortcut to Localising Variables" by Lee, http://www.lee-mac.com/quicklocalising.html
I feel vlide IDE is not reliable ,
A test .
Simple code
(defun c:test
(/ fun1 fun2 s1 s2 d g
) d
);_end_defun_fun1
(fun1 3)
g
);_end_defun_fun2
(fun2)
s2
);_end defun
use vlide check .
[CHECKING TEXT <Untitled-0> loading...]
.
; warning: local variable used as function: FUN2
; === Top statistic:
; Global variables: (D G)
; Function definition (with number of arguments): ((FUN2 . 0) (FUN1 . 1) (C:TEST . 0))
; Check done.
My doubt is why "D" and "G" is global variables ?
-
My doubt is why "D" and "G" is global variables ?
Because they are referenced in fun1 & fun2, but not declared local to these functions, hence the IDE reports them as global in this respect.
-
My doubt is why "D" and "G" is global variables ?
Because they are referenced in fun1 & fun2, but not declared local to these functions, hence the IDE reports them as global in this respect.
Yes, Lee, IDE is not Perfect , is a way to get a list of global variables ?
-
Related:
http://www.theswamp.org/index.php?topic=49679.0
-
Related:
http://www.theswamp.org/index.php?topic=49679.0
Thanks roy, I will have a look.
-
Related:
http://www.theswamp.org/index.php?topic=49679.0
Dear roy
I can't solve my problem
http://www.theswamp.org/index.php?topic=49679.msg551539#msg551539
-
Dear roy
I can't solve my problem
http://www.theswamp.org/index.php?topic=49679.msg551539#msg551539
I have answered in the thread you linked to.