看板 FB_chat 關於我們 聯絡資訊
--tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Moved to chat@] On Sat, Apr 17, 2004 at 09:30:24AM -0600, Dan MacMillan probably wrote: > From: Daniela > Sent: April 17, 2004 04:50 > > > > OO languages can be optimized differently than non-OO languages, and > > when you translate one language into another, this advantage gets lost. >=20 > I challenge you to defend this claim with a specific example. >=20 Let me leave this one to Daniela and defeat a more general claim, that C++ is not just C: The `canonical' (portable; standard-compatible) way to get something done either before or after main() is called, when main() has no awareness of the need to do it, is: a) in C++: creation of a static object, whose ctr/dtr contain the code to be executed before/after main; b) in C: <your answer here> >=20 > How does one properly do an assembly language program for the x86 > instruction set (for example) so that it will run on a StrongARM? >=20 One writes it in C instead:)... --=20 DoubleF I'm written in C++. CC me! --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAggkywo7hT/9lVdwRArbSAJ9wSpqQqN50TETGH99OAYno0GgDJQCdEnSh t7QM/N9mIZqLrF1/gCHfpmg= =qH7F -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--