|
|
Sponsor |
Re: Type system notes: msg#00259apache.db.derby.devel
>"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> |
|---|---|---|
| Previous by Date: | Experimental JSR 169 patch and build instructions, Daniel John Debrunner |
|---|---|
| Next by Date: | Join order and access path, ?? ? |
| Previous by Thread: | Re: Type system notes, RPost |
| Next by Thread: | Re: Type system notes, Daniel John Debrunner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|