Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger writes: > On Sun, Sep 29, 2013 at 01:31:06PM +0200, Alexander Burger wrote: >> Yes, I understood that. Unfortunately, 'select' by itself doesn't filter >> for specific classes (as, for example, the 'db' and 'collect' functions >> do). >> >> It simply gathers objects it can detet

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, >> > But in general, note that >> > >> > (select a1 +C) >> > >> > reads "SELECT a1 from C". This means, you specified no search criterion >> > at all. >> >> yes, but my point is I specifiy a class +C and I'm surprised that its >> superclasses are matched too

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Alexander Burger
On Sun, Sep 29, 2013 at 01:31:06PM +0200, Alexander Burger wrote: > Yes, I understood that. Unfortunately, 'select' by itself doesn't filter > for specific classes (as, for example, the 'db' and 'collect' functions > do). > > It simply gathers objects it can detetct from the '+C' class, by picking

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Alexander Burger
Hi Thorsten, > > But in general, note that > > > > (select a1 +C) > > > > reads "SELECT a1 from C". This means, you specified no search criterion > > at all. > > yes, but my point is I specifiy a class +C and I'm surprised that its > superclasses are matched too as well as classes that don't ev

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, >> ,-- >> | (class +a) >> | (rel a1) >> | >> | (class +b +a) >> | (rel b1) >> | >> | (class +C +b) >> | (rel C1) >> | >> | (class +D +a) >> | (rel D1) >> `-- >> >> now >> >> ,--- >> | (select a1 +C) >> `--- >> >

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Alexander Burger
Hi Thorsten, > ,-- > | (class +a) > | (rel a1) > | > | (class +b +a) > | (rel b1) > | > | (class +C +b) > | (rel C1) > | > | (class +D +a) > | (rel D1) > `-- > > now > > ,--- > | (select a1 +C) > `--- > > and > > ,--- > | (select a1 +