Mail Archives: djgpp/1998/12/31/17:35:58
This probably doesn't answer this q, but I think that it was an option in
Turbo Pascal. It is possible that I saw this in my C++ book, not my Pascal
book (Same publisher), but I don't think so. Still, it is quite likely.
Also, check comp.lang.c and comp.lang.c++.
Alex Lowe wrote:
> This is more a non-DJGPP specific question... but...
>
> If any of you are familiar with VB there is a 'with' and 'end with'
> statement.
>
> It's purpose is to access members of the same declared class with less
> typing. For example:
>
> INSTEAD OF (this is VB example code, but is easy to follow):
>
> foo.bar=3
> foo.test=5
> foo.etc=4
>
> THERE WOULD BE:
>
> with foo
> bar=3
> test=5
> etc=4
> end with
>
> Is there an equivalent in C or C++ to do this?
>
> Thanks in advance.
>
> -- Alex
> ayin AT immediate DOT net
- Raw text -