| From: | |
| Date: | 02 Feb 2001 at 10:35:37 |
| Subject: | Re: structures... |
Hi Alexander,
> In Delphi there is a keyword 'with' which allows you to do the
> following; rather than...
>
> struct test blah;
>
> blah.str = abc;
> blah.val = xyz;
>
> ... you can do...
>
> struct test blah;
>
> with blah do
> begin
> str = abc;
> val = xyz;
> end;
>
> Is there an equivalent in C/C++?
No, there isn't one :-( I knew 'with' too when I started coding in C and
I missed it a lot... You have to stick with blah.xyz = 123; etc... See
ya
Gabriele
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981106588/
---------------------------------------------------------------------_->