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
returns(vlax-safearray->list (vlax-safearray-fill (vlax-make-safearray vlax-vbvariant '(0 . 1)) '(nil nil)))
(#<variant 0 > #<variant 0 >)
Did you file a support request?
0 -
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, Torsten0 -
Just fixed ... thanks for notification !
0 -
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.
0