Re: Entity inheritance and sorting: Bug or my fault?
Re: Entity inheritance and sorting: Bug or my fault?
- Subject: Re: Entity inheritance and sorting: Bug or my fault?
- From: Ian Joyner <email@hidden>
- Date: Mon, 10 Jul 2006 10:16:19 +1000
On 10/07/2006, at 3:35 AM, Anjo Krank wrote:
Am 09.07.2006 um 17:26 schrieb Guido Neitzer:
So, I have to correct myself: For me this is a bug in EOF, because
it should fail in BOTH cases because the attribute "name" is not
reachable from ALL entities I want to fetch. It just shouldn't work.
So you complain that EOF doesn't fail on your buggy code? Well...
that's certainly one way to look at it :)
Well, there is a precedent here in most compiled languages one
technique being strong typing. Such a language will complain about
well known bugs where an entity does not have capabilities because
its type does not have capabilities. Of course this doesn't mean that
100% of problems will be caught this way, so you still need defensive
run-time programming in libraries to reject bad calls (design by
contract). Of course this still may not catch 100% of your bugs, and
I'm not sure where Guido's problem fails, but I'm sure that WO could
do with some tightening up. Let's see isn't there Project Wonder ;-)
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden