|
Boost Users : |
From: Max (boost_www_at_[hidden])
Date: 2008-07-17 01:30:45
Hello Marshall
Thanks.
With your additional point, the things are getting more clearer.
B/Rgds
Max
----- Original Message ----
From: Marshall Clow
To: boost-users_at_[hidden]
Sent: 2008-07-17 10:26:23
Subject: Re: [Boost-users] Several questions on C++
>
At 9:47 AM +0800 7/17/08, boost_www wrote:
>hello Nat,
>
>Thanks you very much for your explanation!
>
>for 1), I never heard of that idiom. In fact, after playing with C++
>for more thant 10 years, I am still keeping finding interesting corners
>of the language. :)
>
>What I get from your information is that, the do/while clause is
>a MUST-HAVE and is obviously intentional.
Absolutely.
>for 2), it seems that 'this->' is a question of coding style and generally
>we could omit it.
Generally, but not always.
If you want to call a member function (_especially_ in templated/library code),
then you should qualify it with "this->", because you don't know if
there will be
a function named "func1" available when the code is compiled.
-- -- Marshall Marshall Clow Idio Software <mailto:marshall_at_[hidden]> It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion. _______________________________________________ Boost-users mailing list Boost-users_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net