D
Dave Theese
Hello all,
Consider a class foo that has a public, non-explicit constructor that can be
called with one argument (either there's only one parameter or the second
and subsequent parameters all have default values). For the sake of making
the discussion concrete, let's say that argument is of type int. There are
two syntaxes to define an object of this class:
foo var(5);
foo var = 5;
Is there *any* semantic difference at all (no matter how small) between
these two forms?
Thanks,
Dave
Consider a class foo that has a public, non-explicit constructor that can be
called with one argument (either there's only one parameter or the second
and subsequent parameters all have default values). For the sake of making
the discussion concrete, let's say that argument is of type int. There are
two syntaxes to define an object of this class:
foo var(5);
foo var = 5;
Is there *any* semantic difference at all (no matter how small) between
these two forms?
Thanks,
Dave