December 20, 2001 might be not a bug, but... | ||||
---|---|---|---|---|
| ||||
The following piece of code compiles fine: alias ABC* LPABC; class ABC { } On other hand, this one gives a "symbol used as a type" error: alias ABC* LPABC; struct ABC { } Going further, this doesn't work: struct ABC { XYZ* x; } struct XYZ { ABC* a; } The same thing made with classes work... Don't you think it's a bit inconsistent and too discriminative to stuctures? =) |
December 20, 2001 Re: might be not a bug, but... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | It does look like a bug. I'll check into it. "Pavel Minayev" <evilone@omen.ru> wrote in message news:9vsrrg$11ku$1@digitaldaemon.com... > The following piece of code compiles fine: > > alias ABC* LPABC; > class ABC { } > > On other hand, this one gives a "symbol used as a type" error: > > alias ABC* LPABC; > struct ABC { } > > Going further, this doesn't work: > > struct ABC > { > XYZ* x; > } > > struct XYZ > { > ABC* a; > } > > The same thing made with classes work... > > Don't you think it's a bit inconsistent and too discriminative to stuctures? =) > > > |
Copyright © 1999-2021 by the D Language Foundation