I have a question about something that is stated below
"Note that GPC does not yet check whether all interface declarations are resolved in the same unit. Procedures and functions which are in fact not used may be omitted, and/or procedures and functions may be implemented somewhere else, even in a different language. However, relying on a GPC bug (that will eventually be fixed) is not a good idea, so this is not recommended."
In the Programmer's Guide -> Source Structures -> Modules and Unites -> Units
The comment about ..."relying on a GPC bug (that will eventually be fixed) is not a good idea, so this is not recommended.", what is the GPC bug and which part of its paragraph does it apply to? 1 - "...Procedures and functions which are in fact not used may be omitted, " 2 - "...Procedures and functions may be implemented somewhere else, even in a different language."
I a, a bit confused as to what this bug is. I looked in the list of known bugs and didn't seem to see anything that directly related to this.
Thanks, Adam
----------------------------------------------------------------------- C. Adam Oldham Marconi Commerce Systems Inc. Software Engineer 7300 West Friendly Ave. adam.oldham@marconi.com Greensboro, NC 27420-2087 Phone : 336.547.5952 Fax : 336.547.5079 ----------------------------------------------------------------------- This document contains confidential information of Marconi Commerce Systems Inc. In consideration of the receipt of this document, the recipient agrees not to reproduce, copy, use or transmit this document and/or the information contained herein, in whole or in part, or to suffer such actions by others, for any purpose except with written permission, first obtained, of Marconi Commerce Systems Inc., and further agrees to surrender the same to Marconi Commerce Systems Inc. upon demand. -----------------------------------------------------------------------
Oldham, Adam wrote:
I have a question about something that is stated below
"Note that GPC does not yet check whether all interface declarations are resolved in the same unit. Procedures and functions which are in fact not used may be omitted, and/or procedures and functions may be implemented somewhere else, even in a different language. However, relying on a GPC bug (that will eventually be fixed) is not a good idea, so this is not recommended."
In the Programmer's Guide -> Source Structures -> Modules and Unites -> Units
The comment about ..."relying on a GPC bug (that will eventually be fixed) is not a good idea, so this is not recommended.", what is the GPC bug and which part of its paragraph does it apply to?
That GPC does not yet check whether all interface declarations are resolved in the same unit (like they should by definition of both EP modules and BP units).
1 - "...Procedures and functions which are in fact not used may be omitted, "
I.e., you can declare a routine, never implement it, and as long as it's not actually called, GPC will not complain (but it should).
2 - "...Procedures and functions may be implemented somewhere else, even in a different language."
You can declare a routine in the normal way and provide the implementation, say, in a C file. GPC should also complain here, unless you declare them as `external' (which, BTW, is the answer to the problem described; I'll add it to that paragraph in the manual).
I a, a bit confused as to what this bug is. I looked in the list of known bugs and didn't seem to see anything that directly related to this.
I don't find it there either, so I'm adding it now ...
Frank