[aspectc-user] overload object 's constructor: bug or not?

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Tue Apr 13 15:17:54 CEST 2004


Hi,

郭 子 wrote:
> bye the way ,i don't know why in bcc32:
> Point p; is error
> but
> Point p();is correct.
>  
> yours truly,
>                guo_zia

This is because "Point p;" declares an object 'p' which is an instance
of 'Point' while "Point p();" declares a function 'p' with no arguments
that returns an object of type 'Point'. In some sense C++ is nightmare ;-).

Yours,

Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3142 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20040413/d111092c/attachment.bin>


More information about the aspectc-user mailing list