[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

subclass of asdf cl-source-file

Jim Newton

3/10/2016 12:52:00 PM

Can someone explain a curious thing about ASDF.
according to section 7.2.3 I can create a subclass of cl-source-file,
and indicate that a particular component be instantiated not as cl-source-file
but as my subclass. I do that by using the keyword indicating my subclass name.

How does ASDF know which package my class name is in if I only specify the
keyword symbol in the asdf system definition? Do I need to define my name with
a class name in the asdf package? Or do I need to assure that there is only one
package in existence which contains a class of the name whose keyword I indicate?
Or what?

Thanks for the help.



https://common-lisp.net/project/asdf/asdf.html#Creating-new-compo...
7.2.3 Creating new component types

New component types are defined by subclassing one of the existing component classes and specializing methods on the new component class.

As an example, suppose we have some implementation-dependent functionality that we want to isolate in one subdirectory per Lisp implementation our system supports. We create a subclass of cl-source-file:

(defclass unportable-cl-source-file (cl-source-file)
())
Function asdf:implementation-type (exported since 2.014.14) gives us the name of the subdirectory. All that's left is to define how to calculate the pathname of an unportable-cl-source-file.

(defmethod component-pathname ((component unportable-cl-source-file))
(merge-pathnames*
(parse-unix-namestring (format nil "~(~A~)/" (asdf:implementation-type)))
(call-next-method)))
The new component type is used in a defsystem form in this way:

(defsystem :foo
:components
((:file "packages")
...
(:unportable-cl-source-file "threads"
:depends-on ("packages" ...))
...
)
18 Answers

Patrick

6/18/2012 12:01:00 AM

0

"azcountry" <mummy@inthedesert.com> wrote in message
news:jrlhm9$hdq$5@wieslauf.sub.de...
> On 6/17/2012 12:53 PM, Alan Ferris wrote:
>> On Sun, 17 Jun 2012 12:44:12 -0700 (PDT), Tracey12
>> <tracey12email@gmail.com> wrote:
>>
>>> Has anyone noticed tha propensity for controversial figures to end up
>>> dead?
>>
>> Yes, and I have also noticed that non-controversial figures also end
>> up dead.....did you have a point to make?
>> Ferrit
>
> People tend to be happier when criminals like King are found dead. Maybe
> you should get homeys together and have a car wash.

What can't we all just get along?


Paul Duca

6/18/2012 2:37:00 AM

0

On Jun 17, 8:01 pm, "Patrick" <barker...@erinot.com> wrote:
> "azcountry" <mu...@inthedesert.com> wrote in message
>
> news:jrlhm9$hdq$5@wieslauf.sub.de...
>
> > On 6/17/2012 12:53 PM, Alan Ferris wrote:
> >> On Sun, 17 Jun 2012 12:44:12 -0700 (PDT), Tracey12
> >> <tracey12em...@gmail.com> wrote:
>
> >>> Has anyone noticed tha propensity for controversial figures to end up
> >>> dead?
>
> >> Yes, and I have also noticed that non-controversial figures also end
> >> up dead.....did you have a point to make?
> >> Ferrit
>
> > People tend to be happier when criminals like King are found dead. Maybe
> > you should get homeys together and have a car wash.
>
> Why can't we all just get along?

You mean "Why can't you all just obey me and MY people?"

Paul

Paul Duca

6/18/2012 2:38:00 AM

0

On Jun 17, 5:20 pm, azcountry <mu...@inthedesert.com> wrote:
> On 6/17/2012 12:53 PM, Alan Ferris wrote:
>
> > On Sun, 17 Jun 2012 12:44:12 -0700 (PDT), Tracey12
> > <tracey12em...@gmail.com> wrote:
>
> >> Has anyone noticed tha propensity for controversial figures to end up
> >> dead?
>
> > Yes, and I have also noticed that non-controversial figures also end
> > up dead.....did you have a point to make?
>
> > --
> > Ferrit
>
> People tend to be happier when criminals like King are found dead.
> It distracts us from how shitty our lives REALLY are..

dennism3

6/18/2012 2:57:00 AM

0

It could be a Twilight Zone episode, downtrodden victim of a police beating
gets a big settlement he uses to buy all the drugs and alcohol he wants and
then drowns in the pool of his luxurious new home.

W.T.S.

6/18/2012 5:26:00 AM

0

In article <dchtt792p508dalf5bgjnprfcclnv63svt@4ax.com>, m@l.mal says...
> On Sun, 17 Jun 2012 21:57:11 -0500, dennism3@dennism3.invalid (Dennis
> M) wrote:
>
> >It could be a Twilight Zone episode, downtrodden victim of a police beating
> >gets a big settlement he uses to buy all the drugs and alcohol he wants and
> >then drowns in the pool of his luxurious new home.
>
> That can't be true. Surely he used his settlement money to help the
> black community.
It wouldn't last long if he did, it wasn't that big a settlement.


Abortion and sterilization, they save the lives, health and futures of
women and men alike!
>
http://www.rhrealitycheck.org/p...
>
http://www.jennyje...
>
http://tinyurl.c...
>
http://www.egalitarian.biz/Plan-B--Remedy-of-a-Lif...
>
http://www.thelizlibrary.org/l...
>
Breed like rabbits, live like pigs, die like rats!
>
Modern Christian: Someone who can take time out from
complaining about "welfare mothers popping out babies we
have to feed" to complain about welfare mothers getting
abortions that PREVENT more babies to be raised at public
expense.
>
http://www.imno...
>
http://img.gawkerassets.com/img/17gbnyv0yzhevjpg/or...
>
http://tinyurl.c...

Mal

6/18/2012 6:08:00 AM

0

On Sun, 17 Jun 2012 21:57:11 -0500, dennism3@dennism3.invalid (Dennis
M) wrote:

>It could be a Twilight Zone episode, downtrodden victim of a police beating
>gets a big settlement he uses to buy all the drugs and alcohol he wants and
>then drowns in the pool of his luxurious new home.

That can't be true. Surely he used his settlement money to help the
black community.

Tracey12

6/18/2012 6:09:00 AM

0

On Jun 18, 12:25 am, "W.T.S." <m...@earthlink.net> wrote:
> In article <dchtt792p508dalf5bgjnprfcclnv63...@4ax.com>, m...@l.mal says....> On Sun, 17 Jun 2012 21:57:11 -0500, denni...@dennism3.invalid (Dennis
> > M) wrote:
>
> > >It could be a Twilight Zone episode, downtrodden victim of a police beating
> > >gets a big settlement he uses to buy all the drugs and alcohol he wants and
> > >then drowns in the pool of his luxurious new home.
>
> > That can't be true.  Surely he used his settlement money to help the
> > black community.
>
> It wouldn't last long if he did, it wasn't that big a settlement.
>
> Abortion and sterilization, they save the lives, health and futures of
> women and men alike!
>
> http://www.rhrealitycheck.org/p...
>
> http://www.jennyje...
>
> http://tinyurl.c...
>
> http://www.egalitarian.biz/Plan-B--Remedy-of-a-Lif...
>
> http://www.thelizlibrary.org/l...
>
> Breed like rabbits, live like pigs, die like rats!
>
> Modern Christian: Someone who can take time out from
> complaining about "welfare mothers popping out babies we
> have to feed" to complain about welfare mothers getting
> abortions that PREVENT more babies to be raised at public
> expense.
>
> http://www.imno...
>
> http://img.gawkerassets.com/img/17gbnyv0yzhevjpg/or...
>
> http://tinyurl.c...

How does abortion relate to the subject of this thread?
Do you think there are those who wish you had been aborted?

Please comment on Rodney King's death and how it fits so many other
controversial figures who have died in mid life of odd circumstances.

BR549

6/18/2012 11:04:00 AM

0

On Jun 17, 9:37 pm, Paul Duca <paul.du...@gmail.com> wrote:
> On Jun 17, 8:01 pm, "Patrick" <barker...@erinot.com> wrote:
>
>
>
>
>
> > "azcountry" <mu...@inthedesert.com> wrote in message
>
> >news:jrlhm9$hdq$5@wieslauf.sub.de...
>
> > > On 6/17/2012 12:53 PM, Alan Ferris wrote:
> > >> On Sun, 17 Jun 2012 12:44:12 -0700 (PDT), Tracey12
> > >> <tracey12em...@gmail.com> wrote:
>
> > >>> Has anyone noticed tha propensity for controversial figures to end up
> > >>> dead?
>
> > >> Yes, and I have also noticed that non-controversial figures also end
> > >> up dead.....did you have a point to make?
> > >> Ferrit
>
> > > People tend to be happier when criminals like King are found dead. Maybe
> > > you should get homeys together and have a car wash.
>
> > Why can't we all just get along?
>
> You mean "Why can't you all just obey me and MY people?"
>
> Paul- Hide quoted text -
>
> - Show quoted text -

And YOU mean,"Why don't all you evil whites sit the fuck down and
STFU? There's a "black" man in the Whitehouse. It's our turn" !!

BR549

6/18/2012 11:07:00 AM

0

On Jun 18, 1:07 am, Mal <m...@l.mal> wrote:
> On Sun, 17 Jun 2012 21:57:11 -0500, denni...@dennism3.invalid (Dennis
>
> M) wrote:
> >It could be a Twilight Zone episode, downtrodden victim of a police beating
> >gets a big settlement he uses to buy all the drugs and alcohol he wants and
> >then drowns in the pool of his luxurious new home.
>
> That can't be true.  Surely he used his settlement money to help the
> black community.

He did. The black owner of the likka' store. The black crack dealer.
The black owner of the Cadillac dealership. The black prostitutue.

Patrick

6/18/2012 1:00:00 PM

0

"Paul Duca" <paul.duca2@gmail.com> wrote in message
news:f11a0337-e284-4bfc-9c30-56119e5a3316@f14g2000yqe.googlegroups.com...
On Jun 17, 8:01 pm, "Patrick" <barker...@erinot.com> wrote:
> "azcountry" <mu...@inthedesert.com> wrote in message
>
> news:jrlhm9$hdq$5@wieslauf.sub.de...
>
> > On 6/17/2012 12:53 PM, Alan Ferris wrote:
> >> On Sun, 17 Jun 2012 12:44:12 -0700 (PDT), Tracey12
> >> <tracey12em...@gmail.com> wrote:
>
> >>> Has anyone noticed tha propensity for controversial figures to end up
> >>> dead?
>
> >> Yes, and I have also noticed that non-controversial figures also end
> >> up dead.....did you have a point to make?
> >> Ferrit
>
> > People tend to be happier when criminals like King are found dead. Maybe
> > you should get homeys together and have a car wash.
>
> Why can't we all just get along?

You mean "Why can't you all just obey me and MY people?"

+ That... too.