dBase,: Why Visual-Lisp not use CommonLisp-quick-informations?

dBase,: Why Visual-Lisp not use CommonLisp-quick-informations?

diagodose2009
Collaborator Collaborator
278 Views
1 Reply
Message 1 of 2

dBase,: Why Visual-Lisp not use CommonLisp-quick-informations?

diagodose2009
Collaborator
Collaborator

CommonLisp describes, what he does each function after the line-defun.

Visual Lisp accepts this "Inf=" description.

 

(defun dfn_taskf2(langf)
 "Inf=Leave only one copy of the repeated elements"
..............
)
(defun dfn_taskf4(lst)
  "Inf=Count the number of repeated occurrences"
...........
)

(defun dfn_taskf5(lst)
  "Replace all elements with count inn reverse Order"
  (let ( ($rr nil)
         (lst3 nil)
       )
............)
(defun dfn_taskf1(vlc $rr)
 "Remove the second and succeeding adjacent duplicates"
 (if (and vlc (cadr vlc) (equal (car vlc) (cadr vlc)))
   (dfn_taskf1 (cdr vlc) $rr)
     (if (cadr vlc)
       (setf $rr (cons (car vlc) (dfn_taskf1 (cdr vlc) $rr)))
       (setf $rr vlc)
     )
  )
)

 

 

Can you test, inside Vlisp for Acad2020+ or Acad2021?

 

 

0 Likes
279 Views
1 Reply
Reply (1)
Message 2 of 2

hak_vz
Advisor
Advisor

Because Visual lisp is not Common lisp (CL). More details here.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes