[Gambas-user] C like #include for Gambas

tobi tobiasboege01 at ...1601...
Tue Jun 12 21:19:53 CEST 2012


On Tue, 12 Jun 2012, Rolf-Werner Eilert wrote:
> Am 12.06.2012 13:41, schrieb Benoît Minisini:
> > Le 12/06/2012 13:01, jm a écrit :
> >> On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote:
> >>>> You already have at your disposal a program which fully understands
> >>>> what to do with #include (and all the other pre-processor directives
> >>>> which have been mentioned). Have you tried it out yet?
> >>>>
> >>>
> >>> Is it possible to insert the C pre-processor into the Play-Button
> >>> function of the Gambas IDE, maybe the way you can insert filters into
> >>> kprinter? That would be ideal here.
> >>>
> >>> Just an idea... :-)
> >>>
> >>> Rolf
> >>
> >> Wow!
> >>
> >> Thinking about it, that is even more powerful to cooperate
> >> with external preprocessor than just adding preprocesor functionality on
> >> its own.
> >>
> >> A simple check box in project properties dialog box to enable/disable
> >> preprocessing can turn the feature on/off. Some programs you may just
> >> not want to allow preprocessing and so checking it off here will allow
> >> the compiler to complain bitterly to go get it fixed.
> >>
> >
> 
> Now, let me add these few thoughts:
> 
> >
> > I'm talking about code subsitution, not the features currently
> > implemented in the Gambas compiler, that just allow compiling one part
> > of the code or another.
> 
> (Are there any? Didn't even know that...)
> 
> > Moreover, preprocessing makes programs mostly unreadable, can create
> > very difficult bugs, make the source code impossible to analyze (bye-bye
> > automatic completion...), and so on.
> 
> Yes, automatic completion would mean browsing all #included files each 
> time to search for keywords, but how do IDEs for C programming handle this?
> 

You talked about IDEs but also vim as an editor can be made using "ctags" for this purpose

Regards,
Tobi




More information about the User mailing list