Re: [LogiLogi-list] about the link sorting
Status: Beta
Brought to you by:
wybow
|
From: Wybo W. <wy...@lo...> - 2006-11-20 11:05:02
|
Hi, all, I just came back. I have a lecture in a minute, so I will answer only one short e-mail now. Welcome back Jennifer!, > There is a problem in the the <=>-operator of link > > self.link_parts[i] <=> other.link_parts[i] > > There is no link_parts method in it. I think maybe You are right. Sorting by requested_to_link_parts is the most frequent use, and the easiest to test, so all link_parts method-calls should be replaced by requested_to_link_parts. You couldn't know this, and I should have told (or done this myself). > it's for getting every link_part of the link by the method. > I tried to finish it. And I noticed that there are three > kinds of, or directions for LinkPart: requested ,received and > from. I'm a bit confused about this. And when sorting links, > should the kind of LinkPart affect the order? Yes it should. > BTW: I'm sorry for my English! :( Your English is quite good! Wybo > Jennifer |