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


Groups > comp.lang.c > #58114

New directions in C: References

From jacob navia <jacob@spamsink.net>
Newsgroups comp.lang.c
Subject New directions in C: References
Date 2015-03-14 23:14 +0100
Organization lccwin
Message-ID <me2bsd$62t$4@speranza.aioe.org> (permalink)

Show all headers | View raw


1.7 References
1.7.1 Motivation
References are pointers to specific objects. They are immediately 
initialized to the object they will point to, and they will never point 
to any other object. They are immediately dereferenced when used.
This addition is necessary for the overloaded operators that modify 
their arguments and can’t receive pointers.

References can’t be reassigned, and pointer arithmetic is not possible 
with them.

Syntax:

As in C++ use the "&" sign instead of the "*" sign.

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


Thread

New directions in C: References jacob navia <jacob@spamsink.net> - 2015-03-14 23:14 +0100
  Re: New directions in C: References raltbos@xs4all.nl (Richard Bos) - 2015-03-15 11:35 +0000
    Re: New directions in C: References Melzzzzz <mel@zzzzz.com> - 2015-03-15 12:51 +0100
    Re: New directions in C: References Greg Martin <greg.at.softsprocket@dot.com> - 2015-03-15 17:12 +0000
      Re: New directions in C: References BGB <cr88192@hotmail.com> - 2015-03-24 16:54 -0500
        Re: New directions in C: References Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-03-24 19:48 -0400
          Re: New directions in C: References Keith Thompson <kst-u@mib.org> - 2015-03-25 08:58 -0700
            Re: New directions in C: References David Brown <david.brown@hesbynett.no> - 2015-03-25 21:34 +0100

csiph-web