[futurebasic] Re: [FB] Re: FBtoC Errors

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2009 : Group Archive : Group : All Groups

From: Max Taylor <maxclass@...>
Date: Fri, 30 Jan 2009 15:15:21 -0800
On Jan 30, 2009, at 1:25 PM, Robert Purves wrote:

>> Open "A",1,"Some File",, system(_aplVol)
>> Print #1,blah blah
>> Print #1,
>> Close #1
>
> I have never understood why printing to a file (print #fileNum)  
> required the comma whereas printing to a window does not. It is easy  
> to change FBtoC to make the comma optional, so that both of these  
> forms are accepted and produce identical C code:
>  print #1, "blah"
>  print #1 "blah
> Unless anyone foresees a problem with this, it will be in the next  
> release of FBtoC.

Sometimes I see code written in the ways that follow:

1.	print #1, "blah"	// with a space before the #
2.	print#1, "blah"	// without the space
3.	print#1,"blah"	// without any spaces

Does the parser care or is option 1 preferred?

Max Taylor
The MaxClass Guy