[Powertop] Why C++ is the language of implementation?
Bill Vyzas <vizasb at gmail.com>
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <CADy9ZNA_1wW69nyNNS=yqL0iqoWZZB=UiTt2BCkft=nqwZP5Sg@mail.gmail.com> |
Hi all, I am curious to know why PowerTOP is using C++ as the language of implementation but the majority of the program is written with the C standards. I checked also some other open source programs like the Gnome Power Manager and its doing the same thing. I know that C++ can also call C and I also know that there are couple of classes on the program but why use C++ for a few classes when you can have structs, which are basically classes, instead. Thanks, Bill
attachment.html
(text/html, 565 B)
<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I am curious to know why PowerTOP is using C++ as the language of implementation but the majority of the program is written with the C standards. I checked also some other open source programs like the Gnome Power Manager and its doing the same thing. <br> <br></div>I know that C++ can also call C and I also know that there are couple of classes on the program but why use C++ for a few classes when you can have structs, which are basically classes, instead. <br><br></div>Thanks,<br> </div>Bill<br></div>