if default functor is an array, length always return 0

Q&A's, tips, howto's

if default functor is an array, length always return 0

Postby zhanglong » Thu Jul 24, 2014 12:51 am

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

In order to pass big array by reference transparently, 'length' should return the array's size.
zhanglong
 
Posts: 9
Joined: Thu Jun 27, 2013 3:58 pm

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

Postby Lutz » Thu Jul 24, 2014 1:55 pm

Thanks for catching this. length will work on arrays in default functors in 10.6.1 too.
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 3 guests

cron