Click here to Skip to main content
15,911,139 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is there a programming language... Pin
Ron Beyer17-Dec-13 4:50
professionalRon Beyer17-Dec-13 4:50 
GeneralRe: Is there a programming language... Pin
Rob Grainger17-Dec-13 22:28
Rob Grainger17-Dec-13 22:28 
JokeRe: Is there a programming language... Pin
Freak3018-Dec-13 3:09
Freak3018-Dec-13 3:09 
GeneralRe: Is there a programming language... Pin
etkid8420-Dec-13 4:07
etkid8420-Dec-13 4:07 
GeneralRe: Is there a programming language... Pin
Ron Beyer20-Dec-13 4:10
professionalRon Beyer20-Dec-13 4:10 
GeneralRe: Is there a programming language... Pin
etkid8420-Dec-13 4:16
etkid8420-Dec-13 4:16 
GeneralRe: Is there a programming language... Pin
Ron Beyer20-Dec-13 4:29
professionalRon Beyer20-Dec-13 4:29 
QuestionRe: Is there a programming language... Pin
Pablo Aliskevicius17-Dec-13 4:45
Pablo Aliskevicius17-Dec-13 4:45 
Obviously, you don't mean just time: otherwise, timespan and datetime in c# would do the trick.
For phisical entities (mass, distance, acceleration, ....) there is a C++ library in BOOST:
http://www.boost.org/doc/libs/1_41_0/doc/html/boost_units/Dimensional_Analysis.html[^]

I remember reading an article (which I can't find) that used this to implement classes that allow you to do the following:
C++
Acceleration g = new Acceleration(9.88); // m/(s*s)
Mass m = new mass(25); // kg
Force f = m * g;


Is that what you're looking for?

Update: Found it. http://www.boostpro.com/mplbook/metafunctions.html[^].
Pablo.

"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899).
"You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).


modified 18-Dec-13 9:45am.

AnswerRe: Is there a programming language... Pin
Marc Clifton17-Dec-13 5:06
mvaMarc Clifton17-Dec-13 5:06 
GeneralRe: Is there a programming language... Pin
Phil Martin17-Dec-13 4:46
professionalPhil Martin17-Dec-13 4:46 
GeneralRe: Is there a programming language... Pin
Marc Clifton17-Dec-13 5:07
mvaMarc Clifton17-Dec-13 5:07 
GeneralRe: Is there a programming language... Pin
Phil Martin17-Dec-13 11:37
professionalPhil Martin17-Dec-13 11:37 
GeneralRe: Is there a programming language... Pin
OriginalGriff17-Dec-13 5:11
mveOriginalGriff17-Dec-13 5:11 
GeneralRe: Is there a programming language... Pin
Marc Clifton17-Dec-13 5:17
mvaMarc Clifton17-Dec-13 5:17 
GeneralRe: Is there a programming language... Pin
Gary Wheeler17-Dec-13 7:08
Gary Wheeler17-Dec-13 7:08 
GeneralRe: Is there a programming language... Pin
OriginalGriff17-Dec-13 8:01
mveOriginalGriff17-Dec-13 8:01 
GeneralRe: Is there a programming language... Pin
Gary Wheeler17-Dec-13 8:05
Gary Wheeler17-Dec-13 8:05 
GeneralRe: Is there a programming language... Pin
Gary Wheeler17-Dec-13 6:53
Gary Wheeler17-Dec-13 6:53 
GeneralRe: Is there a programming language... Pin
Marc Clifton17-Dec-13 13:10
mvaMarc Clifton17-Dec-13 13:10 
GeneralRe: Is there a programming language... Pin
Rob Grainger17-Dec-13 22:31
Rob Grainger17-Dec-13 22:31 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 2:04
greydmar20-Dec-13 2:04 
GeneralRe: Is there a programming language... Pin
Rob Grainger20-Dec-13 3:38
Rob Grainger20-Dec-13 3:38 
GeneralRe: Is there a programming language... Pin
Gary Wheeler18-Dec-13 0:33
Gary Wheeler18-Dec-13 0:33 
GeneralRe: Is there a programming language... Pin
greydmar17-Dec-13 9:19
greydmar17-Dec-13 9:19 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 1:41
mvaMarc Clifton18-Dec-13 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.