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


Groups > comp.std.c > #5989

register at file scope

From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.std.c
Subject register at file scope
Date 2019-10-25 12:45 +0200
Organization solani.org
Message-ID <qoujmq$bf1$1@solani.org> (permalink)

Show all headers | View raw


register allows the programmer to promise not to take the address of an
object. IMO, being able to give this promise would be very useful for
objects at file scope, especially, if these are shared across multiple
translation units.
After all with such an object declared as register, the compiler could
be sure that no pointers that have been obtained from
who-knows-whereever point to the object.

http://colecovision.eu/stuff/proposal-register.html

Philipp

Back to comp.std.c | Previous | Next — 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