[futurebasic] Re: [FB] FBtoC: Constant starting with numeral feature

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

From: Brian Stevens <bstevens33@...>
Date: Fri, 7 Aug 2009 10:42:45 -0700
On Aug 7, 2009, at 3:15 AM, Bernie wrote:

> But wait a minute, the above won't work because the C programming  
> language does not allow constants to start with numerals!


Which effectively prevents FBtoC's generation of C code with the  
constants used in the FB code.

Personally, I'd rather have the option to generate the constants in  
the C code because it is a big help debugging medium to large projects  
(  20,000 LOC + ); More valuable ( at least to me ) than being able to  
code constants with a leading numeral.

Right now the FBtoC-generated C code is an intermediate step prior to  
compile, but it's not too big a leap to imagine ( along with the FBtoC  
option "Make an Xcode project" ) it as a transition step to Objective- 
C. Such a step would be greatly enhanced by readable C code with the  
constants as originally coded. We need to be thinking strategically  
about where FB is going and not focusing on one small enhancement.


Brian S