digitalmars.D.bugs - void initialization of non-arrays
- =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= (14/14) Aug 17 2005 -----BEGIN PGP SIGNED MESSAGE-----
- xs0 (4/27) Aug 17 2005 Hmm, doesn't "=void" simply skip nulling/initializing the value?
- =?ISO-8859-1?Q?Thomas_K=FChne?= (11/24) Aug 27 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Walter (4/12) Aug 28 2005 It is legal and means the initialization is skipped. Perhaps it's poorly
- =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= (12/28) Aug 28 2005 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The following code is illegal currently but does compile. SomeType x = void; It seems logical to me to legalize and document it. http://dstress.kuehne.cn/nocompile/v/void_03_A.d ... http://dstress.kuehne.cn/nocompile/v/void_03_Z.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDA60M3w+/yD4P9tIRAqISAJ9j/kFWoz3tvYzoSNYxfdfDK++45QCglZv4 3v8225DDViE/3DvCwlGwy4w= =Nnlh -----END PGP SIGNATURE-----
Aug 17 2005
Thomas Kühne wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The following code is illegal currently but does compile. SomeType x = void; It seems logical to me to legalize and document it. http://dstress.kuehne.cn/nocompile/v/void_03_A.d .... http://dstress.kuehne.cn/nocompile/v/void_03_Z.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDA60M3w+/yD4P9tIRAqISAJ9j/kFWoz3tvYzoSNYxfdfDK++45QCglZv4 3v8225DDViE/3DvCwlGwy4w= =Nnlh -----END PGP SIGNATURE-----Hmm, doesn't "=void" simply skip nulling/initializing the value? http://www.digitalmars.com/d/changelog.html#new0126 xs0
Aug 17 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 xs0 schrieb:Thomas Kühne wrote:This is only documented for arrays. http://www.digitalmars.com/d/memory.html#uninitializedarrays Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDELPR3w+/yD4P9tIRAtKhAKCWq2u5TfGwxpyVo35GPcK23y4MBQCgo64C Tu42+N0/oI1VU3TweNkLDhw= =YoVP -----END PGP SIGNATURE-----The following code is illegal currently but does compile. SomeType x = void; It seems logical to me to legalize and document it. http://dstress.kuehne.cn/nocompile/v/void_03_A.d .... http://dstress.kuehne.cn/nocompile/v/void_03_Z.dHmm, doesn't "=void" simply skip nulling/initializing the value? http://www.digitalmars.com/d/changelog.html#new0126
Aug 27 2005
"Thomas Kühne" <thomas-dloop kuehne.THISISSPAM.cn> wrote in message news:de0ab6$fo5$1 digitaldaemon.com...-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The following code is illegal currently but does compile. SomeType x = void; It seems logical to me to legalize and document it. http://dstress.kuehne.cn/nocompile/v/void_03_A.d ... http://dstress.kuehne.cn/nocompile/v/void_03_Z.dIt is legal and means the initialization is skipped. Perhaps it's poorly documented.
Aug 28 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Walter schrieb:"Thomas Kühne" <thomas-dloop kuehne.THISISSPAM.cn> wrote in message news:de0ab6$fo5$1 digitaldaemon.com...The only section documenting the VoidInitializer is "Allocating Uninitialized Arrays On The Stack" and talks only about arrays, and not about primitive/class/struct/union/enum. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDEqJg3w+/yD4P9tIRAttaAJ0YYsjJrDQOG7rlyh7epygPC7nesgCglq8X FwNUSpwgTOhtcONslAx6nDo= =Vbgx -----END PGP SIGNATURE-----The following code is illegal currently but does compile. SomeType x = void; It seems logical to me to legalize and document it. http://dstress.kuehne.cn/nocompile/v/void_03_A.d ... http://dstress.kuehne.cn/nocompile/v/void_03_Z.dIt is legal and means the initialization is skipped. Perhaps it's poorly documented.
Aug 28 2005