Paste number 54996: one place i used tagbody... trying to generate 8.3 names from longer ones.... i think it was justified

Paste number 54996: one place i used tagbody... trying to generate 8.3 names from longer ones.... i think it was justified
Pasted by: baggles
When:4 years, 1 week ago
Share:Tweet this! | http://paste.lisp.org/+16FO
Channel:#lispcafe
Paste contents:
Raw Source | XML | Display As
               (tagbody 
                  (mapc #'(lambda (installable)
                            (cond
                              ((not (slot-boundp installable 'short-name))
                               (setf (short-name installable) 
                                     (abbreviate-8 (pathname-name (out-file installable)))))
                              ((not (digit-char-p (aref (short-name installable)
                                                        (1- (length (short-name installable))))))
                               (when (> i 9) (go give-up))
                               (setf (aref (short-name installable) (1- (length (short-name installable))))
                                     (format nil "~a" i))
                               (incf i))
                              (t (go give-up))))
                        installables)
                  (go done)
                give-up
                  (error "Can't resolve short-name conflict ~s, perpetrators: ~a"
                         short
                         (mapcar #'(lambda (installable)
                                     (list (out-file installable)
                                           (short-name installable)))  
                                 installables))
                done)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.