Subject:
|
Re: legOS and alternate operating systems [now off topic]
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 30 Dec 1998 22:54:04 GMT
|
Original-From:
|
dave madden <DHM@PARADIGM.WEBVISION.COMnospam>
|
Viewed:
|
1179 times
|
| |
| |
=>From: Norman Fair <nfair@gdi.net>
=>...
=>What I meant in my previous post is, when you linked in a "traditional"
=>library it only linked the routines you actually used, not the entire
=>library. But with object oriented you link in the entire class, even if
=>you only use one or two methods.
This is not exactly correct; C and C++ typically use the same linkers,
although C++ often requires extra functionality to ensure that
templates are instantiated correctly. There is no requirement that
unused class methods be linked in, but linkers work on a per-file
basis, not per-function. So, if you use any function in a particular
file, then you get all the other functions. And, of course,
developers often put all the methods for a class in a single file. If
they broke the methods into separate files, then the unused methods
wouldn't get linked.
d.
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|