Ernesto Durante <stobos...@gmail.com> writes:

> Thierry Banel <tbanelweb...@free.fr> writes:
>
>> Le 15/08/2014 19:22, Ernesto Durante a écrit :
>>
>> True.
>> And to achieve that the :includes header tag was added:
>> #+BEGIN_SRC C++ :includes <stdio.h>
>>
>> (Because otherwise a #include statement would end up in the main() function)
>>
>> For me this is already a questionable distortion of C++.
>>
>> The Emacs C++-mode does no attempt at hiding parts of a C++ file.
>> It just display the file as it is, and that is good.
>>
> Yes, you are right.
>
>>
>> This is far too complex for me.
>> I will just write down the main() function rather than learning this
>> extension.
>>
>> But of course, I am just one user among others.
>> You are another user and you feel the need for this extension,
>> and this should be taken into account.
>> Try the extension for yourself, then share it, and see if others like it.
>
> Yes, you are right.
>

Perhaps a new header argument should be added for C-Family languages
which will inhibit this main wrapping behavior?

-- Eric


-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)

Reply via email to