Home » Developing U++ » U++ Developers corner » What does !! in e.g. FtpClient class mean?
Re: What does !! in e.g. FtpClient class mean? [message #39659 is a reply to message #39627] |
Mon, 15 April 2013 18:42 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
I am not FtpClient author and brief review of code indicates that in that particular case, using !! is redundant.
Anyway, sometimes it can have same benefit, see Prompt:
int Prompt(Callback1<const String&> WhenLink,
const char *title, const Image& iconbmp, const char *qtf, bool okcancel,
const char *button1, const char *button2, const char *button3,
int cx,
Image im1, Image im2, Image im3)
{
........
int nbtn = !!button1 + !!button2 + !!button3;
|
|
|
Goto Forum:
Current Time: Sat May 11 13:37:51 CEST 2024
Total time taken to generate the page: 0.02880 seconds
|