logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Type system notes: msg#00259

apache.db.derby.devel

Subject: Re: Type system notes

>"Daniel John Debrunner" wrote:

>Language Compilation
>Much of the generate code for language involves the type system. E.g. SQL
operators are converted to method calls >on interfaces within the type

Method calls on interfaces certainly represent polymorphism at its finest
and I am not questioning their use in Derby. But they also make it more
difficult, for me at least, to abstract the actual technical requirements
from the code itself.

The SQLInteger.java has a 'plus' method whose signature is:
public NumberDataValue plus(NumberDataValue addend1,
NumberDataValue addend2,
NumberDataValue result)

All of the parameters and the return value are interfaces.

Would you shed some light on the actual technical requirements for the
'plus' method?

In other words, can the type of each parameter and result value literally be
any and all present and future implementations of the NumberDataValue
interface? That is, is it a derby requirement that the 'plus' method be
capable of being called with 'addend1', 'addend2' and 'result' parameters
being three distinct classes? Or is this just a convenience to make the code
generation more efficient?






<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo