"laycur ; error: no function definition: TYPE"
Any ideas what might cause this. I would like to have some clue on what
to look for in my programs so I can fix them.
thanks,
jamie
--
+-+-+-+-+-+-+-+-+
Jamie Richardson
CAD Coordinator
+-+-+-+-+-+-+-+-+
Josh
"Jamie Richardson" <jrich...@ns.ericksenroed.com> wrote in message
news:3F140D4E...@ns.ericksenroed.com...
Command: (setq type nil)
nil
Command: (type)
; error: no function definition: TYPE
Give you any clues?
--
-Jason
Member of the Autodesk Discussion Forum Moderator Program
"Jamie Richardson" <jrich...@ns.ericksenroed.com> wrote in message
news:3F140D4E...@ns.ericksenroed.com...
TYPE it was.
jamie
--
+-+-+-+-+-+-+-+-+
Jamie Richardson
CAD Coordinator
+-+-+-+-+-+-+-+-+
Command: (defun c:typetest (/ type) (setq type nil))
C:TYPETEST
Command: !type
#<SUBR @02dd749c TYPE>
Command: typetest
nil
Command: !type
#<SUBR @02dd749c TYPE>
The typetest function sets type nil, but since it uses type as a local
vatiable, it doesn't mess with the normal (type) function. Not that you
should do this.
You should not only change the "type" variable name, but should also delare
ALL your variables local to the function that uses them. Otherwise all your
programs will continue stomping on each other.
Jamie Richardson <jrich...@ns.ericksenroed.com> wrote in message
news:3F140D4E...@ns.ericksenroed.com...
-Randy Richardson
"Tom Smith" <tsm...@dongardner.com> wrote in message
news:434D040AE0731BBF...@in.WebX.maYIadrTaRb...
(defun c:asdfsadf ( / asdfsadf)
(setq asdfsadf nil)
)
I can run asdfsadf all day w/ no errors
"Josh" <jos...@hotmail.com> wrote in message
news:608289CF54D5B031...@in.WebX.maYIadrTaRb...
With your example what happens when...
(defun asdfasdf (type)
(type type)
)
?
"Martin Schmid" <martin...@sbcglobal.net.nospam> wrote in message
news:B1C1A33AA224F5FE...@in.WebX.maYIadrTaRb...
MS
"Josh" <jos...@hotmail.com> wrote in message
news:AA9C412F85D7B4AA...@in.WebX.maYIadrTaRb...