While sipping some tequilla Stan was heard slurring to Daniel
SH>
SH> Daniel Hudson was speaking to Garry Kubel about Re: # operator
SH> Hi Daniel,
SH> Are you sure about this?
Yes, I am.
SH> ... about # operator
GK> ... a bit of Power Basic code ...
DH> #include includes external header files ...
DH> #if, #ifdef, and #ifndef are conditional ...
DH> #define and #undef - define and undefine macros for use ...
DH> #line - can't remember
SH> The functionality you describe is denoted by the "$" symbol in
SH> PowerBASIC. Instructions to the compiler are preceeded with $.
Yes but PB C or is that PB != C. 8-)
SH> $INCLUDE FileName$ - to include external TXT files as source
SH> $IF, $ELSE, $ENDIF - conditional compilation
SH>
SH> The "#" is used primarily as a FileNumber Identifier as in these:
He was tring to port C code to PB, and in c # is used for pre-processor
directives.
SH> OPEN "I", 1, FileName$
SH> INPUT #1, Variable$
SH> PRINT #1, String$
SH> CLOSE #1
C uses
FILE * var;
SH> Are you describing the way it's done in C? I don't recognize the
SH> conventions you describe.
Yup, that's what I'm talking about.
SH> Stan, just wondering
No problem.
... I'll have two waitresses to go with nothin' on 'em!
___ Blue Wave/QWK v2.12
--- PCBoard (R) v15.21/10
---------------
* Origin: Gainesville, FL (1:3601/104)
|