[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference varese::basestar_open

Title:BASEstar Open Multiplatform Application Framework
Notice:Kit pointers: see topic 3
Moderator:VARESE::CORBETTA
Created:Tue Oct 02 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:607
Total number of notes:1971

565.0. "Explanation needed for expressions" by AMER::MORETTI (The black sheep) Mon Feb 10 1997 18:36

    Hi all,
    
    Using expressions with B*Open I found the following behaviour that I
    could not understand
    
    BSTR> create data_point a -datatype UNSIGNED_8
    BSTR> create data_point b -datatype UNSIGNED_8
    BSTR> create data_point c -datatype UNSIGNED_8 -expression "a || b"
    BSTR> create data_point cc -datatype UNSIGNED_8 -expression "a | b"
    BSTR> get value data a
    0
    BSTR> get value data b
    0
    BSTR> get value data c
    0
    BSTR> get value data cc
    0
    BSTR> put value data a
    (Unsigned 8): 1
    
    BSTR> get value data c
    0
    BSTR> get value data cc
    1
    
    I would expect data_point c to be one also.
    
    By the way, the documentation at page 3-35 seems to be incorrect
    
    	Logical Or should be || and not !!
    	Bitwise Or should be |  and not !
    
    Thanks for your help
    
    regards
T.RTitleUserPersonal
Name
DateLines
565.1this has to be a QARIMPERO::SERRAWe allow more rock'n'rollTue Feb 11 1997 14:1515
    
    >> I would expect data_point c to be one also.
    
    	   Yes, you're right.
    
    >> Logical Or should be || and not !!
    >> Bitwise Or should be |  and not !
    
    	   Right again.
    
    
    I'll post this in the QAR conference.
    
    - Beppe -