[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Beginner to programming. References to understand terms.
- From: Francisco Olarte <folarte@...>
- Date: Thu, 27 Apr 2017 09:08:41 +0200
On Thu, Apr 27, 2017 at 2:07 AM, Sean Conner <sean@conman.org> wrote:
> Perhaps it's because of my extensive background in Assembly and C, but
> what exactly *is* the difference between a pointer and a reference, other
> than hiding the pointer behind some syntactic surgar?
You need a valid target to initialize a reference ( yeah, you may
invoke undefined behaviour somewhere and make it ref *0, but if you
are using it the easy way it makes things clearer, type* => optional,
type& => mandatory ).
Francisco Olarte.
- References:
- Re: Beginner to programming. References to understand terms., steve donovan
- Re: Beginner to programming. References to understand terms., Dirk Laurie
- Re: Beginner to programming. References to understand terms., Andrew Starks
- Re: Beginner to programming. References to understand terms., steve donovan
- Re: Beginner to programming. References to understand terms., Andrew Starks
- Re: Beginner to programming. References to understand terms., steve donovan
- Re: Beginner to programming. References to understand terms., Gé Weijers
- Re: Beginner to programming. References to understand terms., Coda Highland
- Re: Beginner to programming. References to understand terms., Jay Carlson
- Re: Beginner to programming. References to understand terms., Coda Highland
- Re: Beginner to programming. References to understand terms., Sean Conner