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

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to