LISP: nil to variant...

Can somebody explain this:

(vlax-safearray->list (vlax-safearray-fill (vlax-make-safearray vlax-vbvariant '(0 . 1)) '(nil nil))) ; => (#<variant 11 0> #<variant 11 0>)

(vlax-make-variant nil) ; => #<variant 0 >

Why is nil translated differently? Is it logical, compatible or ...

Thanks in advance.

Regards, Roy.

Comments

  • Obviously it is an inconsistency bug.

    In ACAD 2008 and 2010 the line

    (vlax-safearray->list (vlax-safearray-fill (vlax-make-safearray vlax-vbvariant '(0 . 1)) '(nil nil)))
    returns

    (#<variant 0 > #<variant 0 >)

    Did you file a support request?

     

  • Dear Roy, Dear Stephan,
    many thanks for the hints !
    Of course, the results are not consistent and not Acad compatible ...
    I will fix the problem ... and will keep you updated here.
    Many greetings, Torsten

  • Just fixed ... thanks for notification !

  • Stephan and Torsten thank you both for clearing this up. I'm not yet very experienced with all this so called "visual" stuff, so I was hesitant to call it a bug and report it as such.

    Regards, Roy.

This discussion has been closed.