At 10:42 PM +0800 2/3/03, Peter N Lewis wrote:
Please note I'm not advocating Uses Propagation as something that has to go in to GPC, just trying to clarify where it might be useful. There is certainly a good case to be made against uses propagation, and I think I'd rather see some sort of extension to allow this to be used where appropriate, perhaps something like a synonym for "uses" that also reexports the listed units, or perhaps something like "uses WonderSoundInput (reexport);" or perhaps in the style of "external", something like "uses WonderSoundInput; reexport;" although that would really require allowing multiple "uses" statements to allow for some that were reexported and some that were not.
You're right (and I like your example) but having uses work "in context" w.r.t. interface or implementation avoids the need to do this make up extra syntax to handle exporting. I'll address this in a later post (to try answer as much as I can in one place). While the two unit schemes use the same keywords, they work conceptually differently. Its like a dialect difference to me: something a compiler flag to switch modes could be made (and a compiler directive as I'm a fan of compiler directives to keep things documented within the code ;-) ). But give me a day or so to conjure up a proper code-example based explanation. Grant -- ------------------------------------------------------------------- Grant Jacobs Ph.D. BioinfoTools ph. +64 3 476 1820 (office, after 10am) PO Box 6129, or +64 25 601 5917 (mobile) Dunedin, gjacobs@bioinfotools.com NEW ZEALAND. Bioinformatics tools: deriving knowledge from biological data Bioinformatics tools - software development - consulting - training Check out the website for more details: http://www.bioinfotools.com The information contained in this mail message is confidential and may be legally privileged. Readers of this message who are not the intended recipient are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immed- iately and destroy the original message. This applies also to any attached documents.