if default functor is an array, length always return 0

Q&A's, tips, howto's
Post Reply
zhanglong
Posts: 9
Joined: Thu Jun 27, 2013 3:58 pm

if default functor is an array, length always return 0

Post by zhanglong »

(set 'A:A (array 10))
(length A) --> 0

In order to pass big array by reference transparently, 'length' should return the array's size.

Lutz
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: if default functor is an array, length always return 0

Post by Lutz »

Thanks for catching this. length will work on arrays in default functors in 10.6.1 too.

Post Reply