« first day (193 days earlier)      last day (2666 days later) » 

9:36 AM
there is merit in doing a pure C project but you need to know what you are giving up from C++ (or you can do it to find out what C++ gives you that C doesn't)
 
 
7 hours later…
5:03 PM
@ratchetfreak What is the merit in doing a pure C project? I've wrote a lot of C code for quite a long time, and at least offhand, I fail to see the merit in continuing to do so.
 
5:13 PM
@JerryCoffin appreciating what the higher level abstractions give you by having to implement them yourself, or getting really short compile times
 
@ratchetfreak And how do you believe that using C assists in either of those pursuits? Have you ever tried feeding identical code to a C compiler and a C++ compiler to see how much difference there is in compile times? Do you know of something about C++ that prevents you from implementing abstractions yourself if you choose to do so?
 
C++'s zero-overhead abstractions tend to bloat compile times
and to be clear I'm talking about writing a project in C style but with a C++ compiler (if only because good C compilers don't seem to exist anymore)
 
 
4 hours later…
9:32 PM
my personal reason for doing C is that I am reimplementing a code written in C++, and forcing me to port it to C makes me think of the solution rather than just copying from the C++ solution
 
 
1 hour later…
10:50 PM
Another question and I'm not sure it warrants it's own question:

http://stackoverflow.com/questions/7304026/extracting-submatches-using-boost-regex-in-c

for the accepted answer, what is the line:

string submatch(result[1].first, result[1].second);

doing?
 
@Link Have you considered learning c++?
 
I have
I just don't know what this function does
 
Is it a function?
 
@Link Declaring a function called submatch returning a string taking types of result[1].first and result[1].second
 
Wouldn't a function call look like foo(var, var)?
 
10:53 PM
@Link (obviously not)
 
And would not a function be more like type name(type, type)?
 
Right okay
 
So. It is most likely calling the constructor for a type named string, using those two arguments.
 
And the string is called submatch, correct?
 
No. The variable is called that.
13 messages moved from Lounge<C++>
A variable is not a string. A variable has a type. And the type may be string.
 

« first day (193 days earlier)      last day (2666 days later) »