Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c > #6000

Re: register at file scope

From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.std.c
Subject Re: register at file scope
Date 2019-10-26 19:24 +0200
Organization solani.org
Message-ID <qp1vg1$jr5$1@solani.org> (permalink)
References <qoujmq$bf1$1@solani.org> <qp1p09$f8l$1@dont-email.me>

Show all headers | View raw


Am 26.10.19 um 17:33 schrieb David Brown:
> 
> Just make the object static, and the compiler can quickly figure out if
> its address is taken or not.  I don't see that making this explicit is
> worth the cost of having a keyword for the purpose.

Using static obviously won't work for objects used across multiple
translation units, which is where allowing register would be the most
useful.

Philipp

Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

register at file scope Philipp Klaus Krause <pkk@spth.de> - 2019-10-25 12:45 +0200
  Re: register at file scope David Brown <david.brown@hesbynett.no> - 2019-10-26 17:33 +0200
    Re: register at file scope Philipp Klaus Krause <pkk@spth.de> - 2019-10-26 19:24 +0200
      Re: register at file scope David Brown <david.brown@hesbynett.no> - 2019-10-27 12:39 +0100
        Re: register at file scope Philipp Klaus Krause <pkk@spth.de> - 2019-10-28 12:22 +0100
          Re: register at file scope David Brown <david.brown@hesbynett.no> - 2019-10-28 15:28 +0100
            Re: register at file scope Philipp Klaus Krause <pkk@spth.de> - 2019-10-29 10:00 +0100
              Re: register at file scope David Brown <david.brown@hesbynett.no> - 2019-10-29 13:46 +0100
              Re: register at file scope Philipp Klaus Krause <pkk@spth.de> - 2019-11-25 12:19 +0100

csiph-web