Skip to content
Petit utilities for packaging
Common Lisp
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitattributes
.gitignore
MIT-LICENSE.txt
README.md
petit.package-utils.asd

README.md

petit.package-utils

Petit tool box about packaging.

Package name and its nicknames:

[package name] PETIT.PACKAGE-UTILS

[package nicknames] PPU and PETIT.PU

APIs:

[Function] USE-CONFLICT-PACKAGE:

An alternative CL:USE-PACKAGE function. USE-CONFLICT-PACKAGE enables USE-PACKAGE'ing any packages which have conflicted external symbols.

e.g.

(defpackage :foo
  (:shadow #:car)
  (:use :cl)
  (:export :car) )
(in-package :foo)
(defun car (obj) ...)

(in-package :cl-user)
(ppu:use-conflict-package :foo)
(symbol-package 'car) ; => #<PACKAGE FOO>

You can also specify to-package for USE-CONFLICT-PACKAGE optionally.

e.g. (ppu:use-conflict-package from-package to-package)

[Function] PACKAGE-SHORTEST-NAME:

Returns shortest name or nickname of given package designator.

e.g. (ppu:package-shortest-name :common-lisp-user) ; => "USER"

Note: for GNU CLISP, PPU:PACKAGE-SHORTEST-NAME is just a synonym of EXT:PACKAGE-SHORTEST-NAME.

License:

Under MIT license.

Something went wrong with that request. Please try again.