All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] Why C++ is the language of implementation?
Date: Mon, 31 Mar 2014 08:48:48 -0700	[thread overview]
Message-ID: <53398E60.50904@linux.intel.com> (raw)
In-Reply-To: CADy9ZNA_1wW69nyNNS=yqL0iqoWZZB=UiTt2BCkft=nqwZP5Sg@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

On 3/31/2014 8:43 AM, Bill Vyzas wrote:
> 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.


C++ and objects are a very useful paradigm for certain things (especially if they map
to actual physical things)... and powertop uses that.

I'm not one of those people who goes overboard and sees objects for things that are not
really objects, just pieces of data.


             reply	other threads:[~2014-03-31 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 15:48 Arjan van de Ven [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-03-31 16:05 [Powertop] Why C++ is the language of implementation? Srinivas Pandruvada
2014-03-31 16:01 Bill Vyzas
2014-03-31 15:55 Arjan van de Ven
2014-03-31 15:54 Bill Vyzas
2014-03-31 15:43 Bill Vyzas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53398E60.50904@linux.intel.com \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.