PDA

View Full Version : Warning on compiling the application.


vkotesh
2005-10-14, 07:26 AM
Can any one suggest?
Why the below warning message is coming
while compiling my visual lisp file. I am using the "T" to return sorted elements with their old positions.

; warning: too many arguments: (VL-SORT-I SLIST (QUOTE <) T)

Regards

Kotesh.

RobertB
2005-10-14, 07:43 AM
(vl-sort-i) only accepts two arguments. You have 3.

vkotesh
2005-10-15, 10:55 AM
It accepts 3 arguments also.

Ex. (vl-sort-i '(1 3 2) '<) returns -> (1 2 3) ie. without their old positions.
Ex. (vl-sort-i '(1 3 2) '< T) returns -> ((1 . 0) (2 . 2) (3 . 1)) ie. with their old positions.

If u give this statement at command prompt it is ok. But while compiling this statement in
visual lisp compiler it is giving waring.

ThanQ,

Kotesh.

vkotesh
2005-10-25, 12:17 PM
is this a bug in VisualLISP compiler