[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Notes and observations from a large SC project




On 29 Jul 2009, at 18:01, James Harkins wrote:

On Wed, Jul 29, 2009 at 11:52 AM, Scott Wilson <s.d.wilson.1@xxxxxxxxxx> wrote:

Isn't sendsSignalTo effectively just a synonym for moveAfter then?

moveAfter is not persistent, but sendsSignalTo would be.

b.moveAfter(a);
a.moveToTail(s);  // now b is before a and we have no way to repair it automatically

but...

b.receivesSignalFrom(a);  // (the reverse method for mixerchannel)
a.moveToTail(s);  // order is broken
Node.reorder;  // hypothetical method that would fix the node ordering

Devil's advocate: In what case would you actually do a.moveToTail(s) if you wanted auto node reordering? If something is doing it behind the scenes, how do you guarantee that Node.reorder doesn't break that?

S.