RE: Wishing well

郭雪松 <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
If the items are objects that is come from the other module not writen by ourself, We cannot force the items inherit ByValue.Item.

Without inheriting ByValue.Item, `<() not works; Without `<(), a ByValue.Set object cannot be put into a multiset.

In this case, the example I gave totally not work.

Even if the objects come from our module, we don't want to modify it, for modular design reason.

Guo Xue Song


> Date: Tue, 18 Nov 2014 23:44:32 +1100
> Subject: Re: Wishing well
> From: [email protected]
> CC: [email protected]
> To: [email protected]
> 
> On Tue, Nov 18, 2014 at 11:39 PM, 郭雪松 <[email protected]> wrote:
> > Beleave me, ByValue.pmod is almost the most useful pmod I ever wrote.
> >
> > The reason not convert to string is most likely the items are objects. and
> > they come from another module out of our control.
> 
> Sure, no problem. Like I said, contrived examples don't always carry
> the import of the real-world situation they're representing.
> 
> I'm not sure this really wants to be a built-in, though. It seems
> specialized enough that your ByValue.pmod is the most logical place
> for the code.
> 
> ChrisA
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.