Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

external function

13 views
Skip to first unread message

Haris Bogdanovich

unread,
Dec 29, 2011, 2:17:10 PM12/29/11
to
How can I make a function externa to a package
so it can be called from outside a package ?

Thanks


Sebastián Bení­tez

unread,
Dec 29, 2011, 2:40:24 PM12/29/11
to

Sebastián Bení­tez

unread,
Dec 29, 2011, 2:42:37 PM12/29/11
to
I also suggest (ql:quickload :quickproject) for creating new projects,
it makes it a lot easier. You will need to understand ASDF and
defpackage.

Zach Beane

unread,
Dec 29, 2011, 2:47:26 PM12/29/11
to
"Haris Bogdanovich" <fbogd...@xnet.hr> writes:

> How can I make a function externa to a package
> so it can be called from outside a package ?

Functions are not made external to a package. A symbol naming a function
can be made an external symbol of a package. Whether or not a symbol is
external is a hint about whether "outsiders" should refer to it. It's
more of a "keep off the grass" sign than a barbed-wire fence.

You can make the symbol naming a function an external symbol by adding
it to the :export clause of the package's DEFPACKAGE form, or by calling
EXPORT some time after the package is already defined. I prefer to do
the former.

Zach
0 new messages