First impression of Newton

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: First impression of Newton

Postby Stucuk » Wed Mar 09, 2016 11:59 am

godlike wrote:Normally doxygen goes to the header but I don't have a convincing reason. Maybe, the only benefit I see is that if you compile and distribute newton the .cpp will disappear where the .h will still be there.


The .h is the header which is why people normally put comments their as far as i understand (Though i am use to Delphi's way of doing it where everything is in a single file instead of two). Technically having comments in the .h would be better because as you said the .h will be distributed but the .cpp may not (I.E With the DLL's the only thing thats needed is the header and dll).

Though given that Julio is basically the only person working on the source (No one comes close to his commit amount) its really whatever he prefers (I would love to be able to work on the source but Physics Maths is way over my head).
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: First impression of Newton

Postby Julio Jerez » Wed Mar 09, 2016 1:40 pm

The .h is the header which is why people normally put comments their as far as i understand (Though i am use to Delphi's way of doing it where everything is in a single file instead of two). Technically having comments in the .h

why don't we ignore all the old comments on the Netwon.cpp and start over fresh adding new one to the Netwon.h file. In the end, that's the only file an end user cares about
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron