Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

XOR reserved word

3 posts in Powerscript Last posting was on 2010-03-19 06:10:03.0Z
ChrissDeGrece Posted on 2010-03-18 06:05:15.0Z
From: ChrissDeGrece <chriss_degrece_NOSPAM_@yahoo.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.powerscript
Subject: XOR reserved word
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ba1c29b$1@forums-1-dub>
Date: 17 Mar 2010 22:05:15 -0800
X-Trace: forums-1-dub 1268892315 10.22.241.152 (17 Mar 2010 22:05:15 -0800)
X-Original-Trace: 17 Mar 2010 22:05:15 -0800, vip152.sybase.com
Lines: 4
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27353
Article PK: 793701

Hello,

noticed in the help file that XOR is a reserved word. Is there any
chance we can use bitwise operations natively?


Chris Pollach Posted on 2010-03-19 01:41:10.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.powerscript
References: <4ba1c29b$1@forums-1-dub>
In-Reply-To: <4ba1c29b$1@forums-1-dub>
Subject: Re: XOR reserved word
Lines: 1
Organization: STD Inc.
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ba2d636$1@forums-1-dub>
Date: 18 Mar 2010 17:41:10 -0800
X-Trace: forums-1-dub 1268962870 10.22.241.152 (18 Mar 2010 17:41:10 -0800)
X-Original-Trace: 18 Mar 2010 17:41:10 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27354
Article PK: 761823

Hi Chriss,

I have all the BitWise functions in my framework and they are all coded in
PowerScript (who needs C++ <bg>). Please have a look at the STD Foundation
classes ... http://sourceforge.net/projects/stdfndclass. You can use the
framework for free or feel free to extract the BW code into your own
classes.

BTW: PB 12.Net will have all the BW operators included.
PS: PocketBuilder already has these in its latest release.

--

Regards ... Chris
President: STD Inc.
ISUG - Communications Director
http://chrispollach.pbdjmagazine.com

"ChrissDeGrece" <chriss_degrece_NOSPAM_@yahoo.com> wrote in message
news:4ba1c29b$1@forums-1-dub...
> Hello,
>
> noticed in the help file that XOR is a reserved word. Is there any chance
> we can use bitwise operations natively?


Ivaylo Ivanov Posted on 2010-03-19 06:10:03.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.powerscript
References: <4ba1c29b$1@forums-1-dub>
Subject: Re: XOR reserved word
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ba3153b$1@forums-1-dub>
Date: 18 Mar 2010 22:10:03 -0800
X-Trace: forums-1-dub 1268979003 10.22.241.152 (18 Mar 2010 22:10:03 -0800)
X-Original-Trace: 18 Mar 2010 22:10:03 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27355
Article PK: 793708

I think XOR is a reserved keyword, because it's really available to you,
along with AND, OR and NOT for numeric data types when you're deploying .NET
targets. For such target you can apply bitwise operations upon numeric data
types only inside a .NET conditional compilation block (otherwise you'll get
a compiler error):

http://infocenter.sybase.com/help/topic/com.sybase.dc00586_1150/html/dplynet/BABEIIFE.htm

However, for native PB11 applications you don't have these bitwise
operations available so you'll have to make wrapper functions or use some
already implemented ones, as Chris pointed.

Regards,
Ivaylo

"ChrissDeGrece" <chriss_degrece_NOSPAM_@yahoo.com> wrote in message
news:4ba1c29b$1@forums-1-dub...
> Hello,
>
> noticed in the help file that XOR is a reserved word. Is there any chance
> we can use bitwise operations natively?