Afficher un message
Vieux 30/06/2008, 18h16   #3
campyhapper@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what is this syntax about?

On Jun 30, 11:56am, Jerry Coffin <jcof...@taeus.com> wrote:

> The difference is that in this case, we're assigning to a_ and b_
> instead of initializing them. In some cases (e.g. references) you can
> only initialize, NOT assign, so you _must_ use an initializer list
> instead of an assignment.


Now I see why Java only has objects, no references. The designers of C+
+ sacrificed readability for this albeit clever feature of references.
Not that I'm trolling mind you, the two approaches aren't better or
worse per se, just different.
  Réponse avec citation
 
Page generated in 0,04580 seconds with 9 queries