Declarations variables, Dim, some guidance please



In an application that I'm developing I have dim'd quite a few variables in
Declarations. I'll admit some of it is not wanting to take the time to put
those vars that are used quite often in many macros within the sub
SubName(var list) parenthesis.

1) What advice can you offer on the pro's and cons of this technique? All of
the application's code is in ONE module.

2) I got 'bitten' when testing a macro where a var called Draw was dim'd as
integer in Declarations, had a good value > 0 in prior macros, but was 0 in
the macro I was testing.

Sure enough, I had dim'd it again, inadvertantly, also as Integer in the
macro being tested. Hence the 0 value, I guess. The QUESTION is, why did I
NOT get a duplicate Dim error?

Thanks.
--
Neal Z
.



Relevant Pages

  • Re: defmacro
    ... (defmacro doloop (vars &body body) ... To write a macro, ...
    (comp.lang.lisp)
  • 2 macros and passing gensyms around
    ... when (listp var-and-column-name) ... (defmacro bind-vars ((&rest vars) ... data &body body) ... The name would be created in the with-bindable-columns macro and used in the ...
    (comp.lang.lisp)
  • Newbie doubt with macros ` , ,@
    ... It is a newbie question about how parameters and vars are treated ... It is not possible to write commas inside a comma, ... I want to make the first, i.e., run the the inner macro before ... nil) ). ...
    (comp.lang.lisp)
  • Re: Newbie doubt with macros ` , ,@
    ... It is not possible to write commas inside a comma, ... macro and what should be a function. ... (defmacro let-samevars (definition &rest vars) ...
    (comp.lang.lisp)
  • Re: Why is this macro misbehaving?
    ... (defmacro with-url ((&rest vars) ... for subseq in subseqs collect ... your macro gets the list (REQUEST-UNHANDLED-PART ... REQUEST) as the SEQ argument. ...
    (comp.lang.lisp)