C++ operator 'and '?

It left me speechless. I've been programming professionally since the beginning of the 1980s, and now I am become common in many languages and syntaxes... C/C++, c#, Java, Javascript, HTML, CSS and many more. For a dozen years, I won most of my income do contract development PowerBuilder (PB). PB scripts are similar to the basic syntax, so 'and' and 'or' are written explicitly, rather than symbols, like "& ' or ' | ' in C/C++.

With all these years of work to the PB, it is inevitable that sometimes I type 'and' in C++ instead of "& ', and I just rely on the compiler, or preferably the Publisher, to catch my error. What got me confused, that I was just troubleshooting an obscure bug in my application of Cascades and I stumbled upon a conditional that looked like this:

if (var1 and var2) {
}

But that is clearly not a C++ syntax valid, nor Publisher compiler not made the mistake, and in fact, the code seems to work fine (the condition is true if var1 and var2 are met). The editor syntax highlighter seems to think the "and" is another name of variable, because it colors 'var2', 'and' and 'var2' all the same color, but three variables as are not valid C++ not.

I just can't understand why this is not caught by the compiler, at least, and why it seems to be the use of the good & operator. I guess there could be a #define and & somewhere, but if so, I did not put there. Everyone knows this?

BTW, this bad code was in my app, because I originally created in March 2013 and did not fall under the 10.0, 10.1 or 10.2 SDK.

I was also surprised by that, but it seems that these are keywords C++ standard.

http://www.cplusplus.com/reference/ciso646/

ISO646.h

This header defines the constants of macro eleven with alternative spellings for these C++ operators not supported by the standard ISO646 character.

[...]

In C++, the reserved words exist with the same names as those macros and are treated as an alias of their operator respective. Therefore, the inclusion of this header has no effect in C++ and is not necessary to use alternative names.

Tags: BlackBerry Developers

Similar Questions

  • JavaScript does not in FF, but works fine in IE, Chrome, Opera, and Mobile devices

    On this page, the menus javascript (two of them) often do not load. If I click on Ctrl + F5, they can load on the 2nd attempt. This Page works fine in IE, Chrome, Opera and mobile browsers, but not in FF. I cleared FF cache by going to options and have also worked with modules and plug-ins to 'ask to activate '. This problem persists...

    Javascript menu bars sometimes don't show at all, or sometimes will appear, but have empty menu items (menu options do not show).

    http://www.consultapedia.com/international/international_marketing/intl_mrktg_skill101.htm

    I've included a screenshot of how they (don't) appear in FF. Also another screenshot of how they appear in other browsers, or when I click Ctrl + F5 in FF.

    Hmm, there is a lot of content added by scripts on this page after a delay.

    Firefox has several optimizations to speed up the display of pages in the cache which may malfunction under certain circumstances. For example, display a page using the Back button will not necessarily trigger an "onload" event in the page. This article describes how to work around this problem for web developers: https://developer.mozilla.org/Firefox/Releases/1.5/Using_Firefox_1.5_caching

    For end users, it is a difficult problem to solve. A partial solution might be the following:

    (1) in a new tab, type or paste Subject: config in the address bar and press return / enter. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste sess and make a pause so that the list is filtered

    (3) double-click the preference browser.sessionhistory.max_total_viewers and change the value from-1 to 0 (that's a zero).

    (Please change not all other parameters similar to 0-sounding or you can disable the ability of Firefox to save/restore your tabs and windows open).

    Then reload the page problem and trying sail away and back to see if the inserted content is preserved.

    There may be a performance penalty slight for this change, but you probably won't notice it. Firefox will be used in the file cache, it will just go up the page in a slightly different way that often works around this issue.

    Does make a difference to you on this site?

  • I frequently receive notifications "AW SNAP refractory Page" in all browsers, including Internet Explorer, Firefox, Chrome, Opera and Safari

    I frequently get AW SNAP Page Unresponsive notifications in all browsers, including Internet Explorer, Firefox, Chrome, Opera and Safari which seems to me that there is a set of operating system or a computer problem any.  I use one regularly well maintained (security scans, Defrag, CC Cleaner, etc.) of six year for laptop HP Pavilion 8205 with Windows XP Service Pack 3. This thing mended nuts makes me and, worse yet, no one seems to know the cause of it or a cure for it. I have a Microsoft Security Scanner and no infection occurred. Help, please!

    Hello

    -Did you change on your computer before the show?

    I suggest you follow the steps in this link that talks about a similar problem with a possible fix.

    http://answers.Microsoft.com/en-us/IE/Forum/IE9-Windows_7/Internet-Explorer-page-becomes-unresponsive-and-at/92965131-76fe-4f1F-9d93-609f7770fedc?msgId=d14e1569-69c5-41dd-97D7-7d839c5352b8

  • How to make Windows "Operations and phone Bluetooth settings" in windows vista professional?

    When I pair a phone portable Bluetooth, I have windows "Operations and the Bluetooth phone settings", but if I want to open the window even for second time, how to get it. If I right click on the device, I see no option.
    Help, please
    Yogi

    Hello

    ·         What is the brand and model of the computer and the phone?

    ·         Do you use the computer laptop or desktop?

    ·         What application you use to connect?

    I suggest you to contact the software manufacturer / manufacturer of mobile phones for more information on this issue.

    You can check the links below.

    Set up a Bluetooth compatible device

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    The problems with Bluetooth devices

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices 

  • I was trying to read a sd card in my phone opera and it stop my computer windows vista laptop.

    Original title: windows vista compatibility?

    I was trying to read a sd card in my phone opera and it stop my computer windows vista laptop. Is their a capacity problem or am I missing something. I have long phone trying to upload photos to save. Have I missed a program?

    Hi Garym.nsb, fl,

    ·         Did you do changes on the computer before the show?

    ·         You receive an error message?

    Follow the suggestions below for a possible solution:

    Method 1: Try to use the SD card on another computer and see if you can access the files.

    Method 2: Performance Automatic troubleshooting of Microsoft.

    Microsoft has automatic convenience store to find and troubleshoot hardware problems. Try the following steps to run the fix it.

    Visit the site and download Microsoft fix and run it with the following success:

    http://support.Microsoft.com/GP/hardware_device_problems

    Method 3: Try to use an external card reader to see if it helps.

    Let us know if it helps.

  • When I try to put in operation and open Windows Defender I get one of the following errors: 0x800705b4, 0x800106ba, 0x800710dd.

    Cannot open Windows Defender

    When I try to put in operation and open Windows Defender I get one of the following errors: 0x800705b4, 0x800106ba, 0x800710dd.  What is the solution?

    When I try to put in operation and open Windows Defender I get one of the following errors: 0x800705b4, 0x800106ba, 0x800710dd.  What is the solution?

    You have the MSE, Microsoft Security Essentials, AVG, Norton or McAfee installed?
    If so, these programs are supposed to close Windows Defender.
    This is because they have their own advocates. 2 defenders running on the same computer is redundanr as well as to create conflicts.
    In short, if you have one of the above, you don't need Windows Defender.

    Is there another reason you want to open Windows Defender?

    P.S. Wrong forum for your question. He should go to the security forum.

  • Peripheral Bluetooth disconnects when "Bluetooth Headset operations and settings" window is closed

    So when I connect my Bluetooth headset to my laptop I have at the same time press the 'connect' button on my headset * and * open the Bluetooth Headset operations and settings window, then click on 'Connect' on there also.

    So my first question is:

    Why do I have to do a step totally superfluous alone time I want to connect my headset? It should be the case that once I've set up my headset with my laptop, it will automatically connect when I press the 'connect' button on my helmet. I wouldn't do more than that.

    My second question is:

    Why my headphones does not cut off when I close the Bluetooth Headset operations and settings window?

    It's the same problem that this guy has been seen two years ago:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/Plantronics-M100-Bluetooth-headset-disconnects/a79abcf5-2f26-4240-A808-2d2042fe4e01

    Feature: Armel BSH10 Bluetooth stereo headset.

    Hello Teedjay,

    Thanks for posting your query on Microsoft Community forum.

    I would be grateful if you can provide us with the following information to help us better understand the issue.

    1. Going to Headset/Bluetooth Headset before working on this computer?
    2. Have you tried another Bluetooth device on this computer? Has been the result even?
    3. Have you tried the steps suggested in the thread you mentioned in your post? If yes what was the result and that do not try these measures after the method 1.

    Try the methods below and see if it works for you.

    Method 1:

    Run the hardware and devices troubleshooter.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter


    Method 2:

    If the problem persists, try to refer to the procedure described in the following Microsoft article and see if it helps.

     

    Add a Bluetooth device to your computer
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

     

    Connect to Bluetooth and other wireless or network devices
    http://Windows.Microsoft.com/en-us/Windows7/connect-to-Bluetooth-and-other-wireless-or-network-devices

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • Flash Player 11.9.900.117 not recognized by Opera and Firefox on Windows Vista (32-bit) SP2

    I use 4 browsers on my laptop Toshiba Windows Vista (32-bit) SP2:

    Internet Explorer 9

    Google Chrome Version 30.0.1599.101 m

    Opera Version 17.0.1241.45

    Mozilla Firefox Version 24.0

    I just downloaded and installed Flash Player 11.9.900.117, which is recognized by IE9 and Chrome from Google, but not in Opera and Firefox, even after closing the browser and re-start.

    How can I get Flash Player to work with Opera and Firefox?

    Thanks for your help.

    See you soon,.

    Joel

    There are two different versions of Flash Player for Windows (3 If you count Chrome)

    ActiveX which is ONLY for IE,

    Flash Player for other browsers which is for Opera, Safari and Firefox, and

    "PepperFlash" that is built into Chrome by Google.

    Download the tool or another browser version will have NO EFFECT on Chrome.

    Download of the ActiveX version WILL NOT install a plugin for Opera or Firefox because they do not use controls ActiveX - NO browser but IE uses not since about 2001.

    Download Adobe Flash Player for Firefox and Opera setup directly by clicking on the following link.

    Flash Player plug-in (all other browsers)

  • EXECUTE IMMEDIATE and operator "AND".

    Please what is the problem with this because the error said Invalid operator relationship
    declare
    x varchar2 (20);

    Start
    x: = "Navy";
    address: = "Cairo";
    ID: = 4;

    EXECUTE IMMEDIATE 'update t1 set name =' | x |' where address: = v1 and id: v2 =' help to answer, id;

    end;


    but it works fine without operator AND
    declare
    x varchar2 (20);

    Start
    x: = "Navy";
    address: = "Cairo";
    ID: = 4;

    EXECUTE IMMEDIATE 'update t1 set name =' | x: ' if the address: v1 =' using address;

    end;

    EXECUTE IMMEDIATE 'update t1 set name =' | x |' where address =: id = and v1: v2' using answer, id;

    -There should not be ': =' must be '=' and ': should precede the variable equal not before.

  • Border within changes in the table in white at the opera and ie8?

    Does anyone know why Opera and internet explore Exchange inside borders of the Whiteboard?

    In Safari and Firefox, it stays black.

    Here a link to the Web site

    EDIT:

    Now, I've attached a screenshot of the dashboard that looks like the opera.

    Add the following to your CSS:

    #content td {border: 1px solid #000}

    FYI: it is the appearance of your page in IE6.

    Pre - IE7 browsers make transparency alpha PNG without the help of a Fix.js of PNG IE.  Do a Google search. You'll find several.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.com/blogspot.com

  • Operator and Date of '0 '.

    Has anyone encountered this error of Date of the '0' when starting OPERATOR?

    He has just started happening in the last days.

    Operator still works OK, but the error is really boring

    Thank you

    G

    UPDATE_

    OK - I operator installed on another computer that does NOT get the error. On this machine, I have not changed the odiparams.bat file while on the post where I get the error is configured to point to my sql server master repository and work within the parameters ODI_SECU_DRIVER, ODI_SECU_URL, ODI_SECU_USER, ODI_SECU_ENCODED_PASS, ODI_SECU_WORK_REP, ODI_USER and ODI_ENCODED_PASS...

    Published by: geeo 24 Sep, 2008 04:06

    Hi-

    There seems to be a bug with the ODI operator and data values of concern bad information in the definition of the filter. To resolve this problem temporarily, do the following steps:

    1. open ODI operator.
    2. click on the button 'Filter' in the menu bar to open a window called "set filter".
    3. in this window, uncheck the 2 'From' and ' to the ' fields.
    4. close ODI operator and all other open applications ODI GUI.
    5. open operator ODI again.
    6. uncheck "Filter" in order to disable filtering.
    7. close ODI operator and all other open applications ODI GUI.
    8. open operator ODI again.

    Thank you
    Silou René-coral

  • Join between major operations and delivery details

    I develop a relationship where I get the material details of transacitons and delivery for the sales order. I use the following query to get these details.

    If the order contains several important operations and deliveries, I get the product cartision using the following query.

    SELECT a.order_number, b.line_number, f.lot_number, c.oe_interface_flag
    OF apps.oe_order_headers_all one
    apps.oe_order_lines_all b
    c apps.wsh_delivery_details
    apps.mtl_material_transactions d
    e apps.mtl_transaction_types
    apps.mtl_transaction_lot_numbers f
    WHERE a.header_id = b.header_id
    AND d.trx_source_line_id = c.source_line_id
    AND b.line_id = d.trx_source_line_id
    AND f.transaction_id = d.transaction_id
    AND d.transaction_type_id = e.transaction_type_id
    AND d.transaction_type_id = 33
    AND a.order_number = '12000053'

    Can any body tell me that I can use the following join between major operations and deliveries.

    AND f.lot_number = c.lot_number

    Thank you
    RAMU

    RAMU
    You are right. I watched more. Add this condition instead of the batch number condition.

    WDDS.delivery_detail_id = MMT.picking_line_Id

    where JMD is wsh_delivery_details and mtl_material_transactions TEM.

    Thank you
    Claire

  • am a div in a site does not appear in firefox but present on all other browsers (chrome, safari, opera and Explorer), can anyone help?

    I'm developing a site and I used div tags by making the arrangements.
    all other tags div on the page shows but on an individual does not show.
    I gave all the divs a border with a red color, all other browsers (explorer, opera, chrome and safari) shows the divs with the colors, but firefox does not yet show the color red

    can you please explain how works this adblock, which is technically

    I'm not really sure, but after reading the development councils and the Firefox support for many years, I've seen this place ourselves, from time to time: "Announces" the letter string in a URL id or class name or CBC may assume of Add-ons for advertising correctly or incorrectly.

    I'm not a developer, but I can recommend joining the mozillaZine Web Development board as a useful resource.

  • If you use SSD what size minimum, you can use I'll just install the softwar winds 7 operation and put all the other programs on a hard drive Sata is the way it should be done?

    I'm building a new PC, I have the motherboard and it has a location for an SSD, this who has the ability of minium are? and if this store just drive the sofware opererating only, as I intend to have all my programs and data on a SATA hard drive is the way to corect to go? Could someone ' a please advise please.

    The minimum I recommend is 80 GB, if you can go for 128 GB to 160 GB, I would go for it.

    Windows 7 uses 10 GB of disk space, and you have to take into account future, Service Packs and updates.

    You must also consider your page file size that will depend on the amount of RAM you have installed.

    Other disk space requirements include your programs and hardware drivers.

    The benefits of having an SSD is to accelerate the performance of the operating system and applications. In order to have a just installed SSD for upgrading the operating system on a mechanical HDD as well as your programs wouldn't make sense. Store content or data that you create on the HARD disk.

  • XP/Vista: Plugin Flash PPAPI 23.0.0.162 does not work in Opera and chrome

    After flash updated to version 23.0.0.162 PPAPI plugin stop working in all browsers based on Chromium (except Chrome, because help Chrome integrated PPAPI version 22.0.0.209). Browser based on Chromium (49 chrome, Opera 36) on the flash content display message "could not load plugin."

    In IE and Firefox Flash plugin works fine (and too much Chrome because use 22 ppapi plugin version).

    I have replace pepflashplayer32_23_0_0_162.dll ppapi dll version 22.0.0.209 of Chrome, browser based on Chromium restart display of flash content.

    Correct the dll PPAPI. This disorder stole 3 hours of my time.

    OS: Windows XP SP3 32-bit

    Browsers: Opera 36, chrome 49

    < Moderator: edited the title to better reflect the issue >

    This problem is fixed in the latest version 23.0.0.185 released today.

Maybe you are looking for

  • Photos shared on iOS devices use data?

    I have created a number of shared albums in the Photos on my Mac and iOS devices. When other people visit then shared albums, what data are used to access? I invited a person to see a shared album which had mobile data off on their iOS device and no

  • Can not install windows automatic update NVIDIA Geforce 7150 M

    I'm trying to update nVidia - showing - NVIDIA GeForce 7150 M / nForce 630M published December 2008 driver but it fails with the error code 800703E3. (HP Pavilion dv6815nr notebook) Can someone please shed some light on this and explain what who or w

  • Satellite A300-1LT - I have to manual activate HDMI sound

    Hi all, This program (Manager of HDMI) do not work for me, I have to manual activate HDMI sound and when I want to connect or disconnect the display they do not recognize when I plug in the cable.So everything has manual (centar media connect display

  • Creating cloud do not install it on my mac. It says (error code: A12E5)

    Creating cloud do not install it on my mac. It says (error code: A12E5). What should I do?

  • Photoshop integration

    "Allows dashboard reflow CC (preview) allows you to create beautiful, sensitive designs." Deep integration between edge of reflow and Photoshop CC will enable the process of creating web seamlessly in the future."WHEN?