[Gambas-user] About library and component packaging in Gambas 3

tobi tobiasboege01 at ...1601...
Sat May 5 19:21:21 CEST 2012


On Sat, 05 May 2012, Benoît Minisini wrote:
> Le 05/05/2012 15:30, tobi a écrit :
> >>
> >> OK.
> >> But just for interest, what do you mean by "impossible to analyze"? Excuse me, but I haven't read
> >> anything from the compiler yet. (When you say "analyze", I think of line numbers and stuff
> >> (optimisation can be done later, too, right?), but line numbers would be possible, I'm almost a bit
> >> certain, to report to the IDE, if that is what you mean)
> >> I just tested it and found that cpp warns at ['] the gambas comment character which, of course, may
> >> not ahve any closing ['] one and thus confuses the program but it fearlessly ignores that and
> >> continues as expected.
> >>
>  >> ...
> 
> "cpp" means "C PreProcessor". This program was designed (not always 
> intelligently) for the C-language.
> 
> This is the reason why there is a preprocessor inside the Gambas 
> compiler dedicated to the Gambas language.
> 
> But this preprocessor is very rudimentary, only the really needed 
> features being implemented.
> 
> When I say "impossible to analyze", I mean that a preprocessor like 
> "cpp" is really obfuscating the real code, and so it will prevent the 
> development from analyzing the code. Then you can say bye-bye to 
> automatic completion, method arguments popups and so on.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Yes, and even the manpage warns about using cpp with other languages and recommends one that is
built especially for the certain language. (Although, I find it rather powerful apart from C)
I didn't know the preprocessor was responsible for these nifty things. It seems to already play a
great role - I was entirely focused on the directives it provides which permit to think that it
wasn't that important and could be easily replaced.
Sorry for the noise.

Regards,
Tobi




More information about the User mailing list