public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vova <vova-gs@yandex.ru>
To: gcc-help@gcc.gnu.org
Subject: Re: Static constant class members
Date: Sun, 29 Feb 2004 20:39:00 -0000	[thread overview]
Message-ID: <200402292136.44657.vova-gs@yandex.ru> (raw)
In-Reply-To: <6.0.3.0.2.20040229104309.01e933a0@iplan-mn.corp.adobe.com>

Hello !

On Sunday 29 February 2004 19:49, Eljay Love-Jensen wrote:
> You are correct.  If you really want it to be an immediate operand in C++,
> do this:
>
> class TxtVideo
> {
> public:
>    static unsigned int* const getVBase() { return (unsigned int*
> const)0x0C00B8000L; }
> ...
>
> That will be inserted as an inline function (since it's body is defined in
> the class), and the inline will optimize down to an immediate.
>
Thanks ! I'll try it.

-- 
          Vova

      reply	other threads:[~2004-02-29 18:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 18:41 Vova
2004-02-28 21:23 ` Eljay Love-Jensen
2004-02-29 16:49   ` Vova
2004-02-29 17:13     ` Eljay Love-Jensen
2004-02-29 20:39       ` Vova [this message]

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=200402292136.44657.vova-gs@yandex.ru \
    --to=vova-gs@yandex.ru \
    --cc=gcc-help@gcc.gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).