C (35/257)

From:
Date:02 Feb 2001 at 19:19:08
Subject:Re: structures...

Hiya Serge,

On 02-Feb-01, you wrote:

>> struct test blah;

>> with blah do
>> begin
>> str = abc;
>> val = xyz;
>> end;

>> Is there an equivalent in C/C++?

> You can do:

> #define str blah.str
> #define val blah.var

> str=abc;
> val=xyz;

> #undef str
> #undef val

A work around; but kind of defeats the object of what 'with' allows you
to do :-)

I will have put up without it. It's just when you use Delphi for 7.5
hours a day you some what get used to a certain way of doing things :-)

Thanks anyway!

Kind regards...

Alex



Cremlin Software - http://www.cremlinsoftware.org
Founder, lead programmer - ghandi@cremlinsoftware.org
Production, programmer - anj@cremlinsoftware.org

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981138632/
---------------------------------------------------------------------_->