Advertisement
Guest User

Untitled

a guest
Apr 5th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.08 KB | None | 0 0
  1. ;;; Lquery:$ and cl-arrows
  2. ;;; The Code in dispute
  3. (defun get-live-href (data query)
  4.   (-<>> (concatenate 'string ".cb-lv-scr-mtch-hdr a[href*=" query "].text-bold")
  5.     (lquery:$ data)
  6.     (aref <> 0)))
  7.  
  8. ;;; Expected macro-expansion
  9. (aref
  10.  ($
  11.    data
  12.    (concatenate 'string ".cb-lv-scr-mtch-hdr a[href*=" query "].text-bold"))
  13.  0)
  14.  
  15. ;;; SBCL error
  16. ; in: DEFUN GET-LIVE-HREF
  17. ;     (-<>> (CONCATENATE 'STRING ".cb-lv-scr-mtch-hdr a[href*=" QUERY "].text-bold")
  18. ;       ($
  19. ;         DATA)
  20. ;       (AREF <> 0))
  21. ; --> AREF $
  22. ; ==>
  23. ;   (CONCATENATE
  24. ;    (LQUERY::DETERMINE-VALUE DATA
  25. ;                             (MAKE-PROPER-VECTOR :SIZE 1 :INITIAL-ELEMENT
  26. ;                                                 *LQUERY-MASTER-DOCUMENT*
  27. ;                                                 :FILL-POINTER T))
  28. ;    'STRING ".cb-lv-scr-mtch-hdr a[href*=" QUERY "].text-bold")
  29. ;
  30. ; caught WARNING:
  31. ;   Constant STRING conflicts with its asserted type SEQUENCE.
  32. ;   See also:
  33. ;     The SBCL Manual, Node "Handling of Types"
  34. ;
  35. ; compilation unit finished
  36. ;   caught 1 WARNING condition
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement