Patrick,

It's not a bug, simply change to:

    myTest "two"      Self:n2:=1

This is because : is a continuation token in Clipper PP.

Ron

--------------------------------------------------
From: "Patrick Mast, xHarbour." <patrick.m...@xharbour.com>
Sent: Tuesday, September 29, 2009 1:34 AM
To: "xHarbour Developers Mailing List" 
<xharbour-developers@lists.sourceforge.net>
Subject: [xHarbour-developers] Preprocessor Bug?

> Hello,
>
> Please try this small test:
>
> //----------------------------------------
> #include "hbclass.ch"
> #command myTest <x> <y> ;
>         => ;
>         Test(<x>)
>
> CLASS Test1
>   METHOD Init()
>   DATA n2
> ENDCLASS
>
> METHOD Init() CLASS test1
> myTest "two" Test(::n2:=1)
> myTest "two"      ::n2:=1
>
> RETURN Self
>
> Function Test(x)
> RETURN x
> //---------------------------------------
>
> It returns this error:
> test.prg(19) Error E0030  Syntax error: "syntax error at 'MYTEST'"
>
> Where line 19 is:
> myTest "two"  ::n2:=1
>
> Notice that Line 18 compiles OK.
>
> The error occurs when <y> begins with ::
> It seems that if y begins with ::, its not seems as <y>, but still a part 
> of <x>
>
> Thanks!
>
> Patrick
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register 
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to