Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 22, 2002 with(struct) | ||||
---|---|---|---|---|
| ||||
Ok maybe I'm just being lazy but I can't put a struct in a with statment? struct Foo { int a; } Foo b; with(b) { a = 2; } |
May 22, 2002 Re: with(struct) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Patrick Down | "Patrick Down" <pat@codemoon.com> wrote in message news:Xns92164F7FB434patcodemooncom@63.105.9.61... > Ok maybe I'm just being lazy but I can't > put a struct in a with statment? Earlier, on my similar comment, Walter said that "it is an interesting idea"... =) |
May 22, 2002 Re: with(struct) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | I thought that was what the with statement was for? Sean "Pavel Minayev" <evilone@omen.ru> wrote in message news:acfrqa$g6v$1@digitaldaemon.com... > "Patrick Down" <pat@codemoon.com> wrote in message news:Xns92164F7FB434patcodemooncom@63.105.9.61... > > > Ok maybe I'm just being lazy but I can't > > put a struct in a with statment? > > Earlier, on my similar comment, Walter said > that "it is an interesting idea"... =) |
May 22, 2002 Re: with(struct) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean L. Palmer | "Sean L. Palmer" <seanpalmer@earthlink.net> wrote in news:acgk9h$17a2$1 @digitaldaemon.com:
> I thought that was what the with statement was for?
>
It works with object references but not structs.
|
Copyright © 1999-2021 by the D Language Foundation