Pointers are explicit objects which get passed into a function and reflect an actual implementation detail. Call-by-reference is a language feature that can be implemented in many ways by a compiler.
Announcement
Collapse
No announcement yet.
The Navy ship of the Future?
Collapse
X
-
Errr....far be it from me to argue with the compsci, but if you put a pointer variable in as an argument to a function in C you can modify the value of the variable inside the function, which is a call-by-reference, no?
If you just toss in a non-pointer you can't modify it because the function creates a copy of the variable and uses that. And that's call by value.
?12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
By the way, I have no idea what you said in your second post.12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
Ah, I think I understand. I think you're saying that the actual pointer is called by value. Of course, that's true. But effectively speaking passing a pointer to an object is like passing the object by reference.12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
I'm aware of the explicit call-by-reference features of C++
But I avoid them like the plague because I learned how to program in C.12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
How long will it take me to learn VBA (specifically for Excel)? I've seen a lot of places request that and Java (in addition to C++). But I'm not ****ing learning Java.
12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
Originally posted by Lonestar View PostSiro,
Yeah, the two prototypes are certainly not cheap by any stretch of the imagination, but they are still cheaper(per thousand ton) than any USN vessel under construction. I haven't heard of any problems with regards to being Littoral(remember, LCS-1 did it's sea trials on a lake for chrissakes), the problems would arise from operating in an environment that no one other than Amphibs or 14,000 ton STEALTH DESTROYERS can on the USN side also operate in.
It has what, 1 helicopter? am I correct?
Kuci - KH was right to make a pointer. He couldn't have declared a reference to a joke you never initialized.
Comment
-
Originally posted by Sirotnikov View PostHow will its group operate? I imagine it has to have several smaller ships (some amphibs too) for engaging small and fast hostile vehicles and boarding them.
It has what, 1 helicopter? am I correct?
Since the vessels can go at 40kts, they should be able to overtake most smaller vessels(Pirates aren't exactly operating Miami Vice cigarette boats) and if not, well, you still have a helo on hand for that.Today, you are the waves of the Pacific, pushing ever eastward. You are the sequoias rising from the Sierra Nevada, defiant and enduring.
Comment
-
Let's just pretend I made my usual unfunny nanometer joke this"The DPRK is still in a state of war with the U.S. It's called a black out." - Che explaining why orbital nightime pictures of NK show few lights. Seriously.
Comment
-
Originally posted by KrazyHorse View PostHow long will it take me to learn VBA (specifically for Excel)? I've seen a lot of places request that and Java (in addition to C++). But I'm not ****ing learning Java.
As for Java, that's huge in the finserv world. Worth learning."The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
Ben Kenobi: "That means I'm doing something right. "
Comment
-
**** Java. Use a real language.
C++ is much, much, bigger from what I understand. At least in the physics part of the ecology.12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
Originally posted by KrazyHorse View Post**** Java. Use a real language.
C++ is much, much, bigger from what I understand. At least in the physics part of the ecology."The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
Ben Kenobi: "That means I'm doing something right. "
Comment
Comment