Re: [Rd] S4 - inheritance changed by order of setClassUnion and setAs()

2020-10-06 Thread Blätte , Andreas
Andreas Von: Gabriel Becker Datum: Dienstag, 6. Oktober 2020 um 02:02 An: Blätte Cc: Peter Dalgaard via R-devel Betreff: Re: [Rd] S4 - inheritance changed by order of setClassUnion and setAs() Andreas, As far as I can tell (/conjecture), this is because the list of classes a particular class

Re: [Rd] S4 - inheritance changed by order of setClassUnion and setAs()

2020-10-05 Thread Gabriel Becker
Andreas, As far as I can tell (/conjecture), this is because the list of classes a particular class inherits from directly is appended to as needed, and so the order that a class extends others isd refined by the order that those connections are defined. We can see this with two setClassUnion cal

[Rd] S4 - inheritance changed by order of setClassUnion and setAs()

2020-10-05 Thread Blätte , Andreas
Dear colleagues, there is a behaviour with S4 (virtual) classes that I find very hard to understand: Depending on the position of setAs(), the tree of inheritance changes. This is my baseline example that defines the classes "grandma", "mother", "daughter" and a virtual class "mr_x". For a new