FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Harbour warnings
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Harbour warnings
Posted: Sat Jun 25, 2022 03:40 PM
Enrico Maria Giordano wrote:The solution is already present in xHarbour (-wb- compiler switch). As I already wrote, I did hope that there were a similar solution for Harbour. Ok, I understood that there is not. :-)

EMG

Yes.
I tried earlier and could not find any switch in Harbour with similar functionality as -wb- in xHarbour.
Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour warnings
Posted: Sat Jun 25, 2022 03:49 PM
rhlawek wrote:What I do NOT understand why Self in the row for .center. does not also throw the warning when using w3.


There is no Self in the CENTER clause. Probably you mistakenly looked at the VALID clause:

Code (fw): Select all Collapse
<.center.>, [{|Self|<uValid>}],;


EMG
Posts: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: Harbour warnings
Posted: Sat Jun 25, 2022 03:53 PM

You are correct, I missed the fact of the comma.

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Harbour warnings
Posted: Sun Jun 26, 2022 08:48 PM
hi,

in c:\fwh\include\objects.ch i found this
Code (fw): Select all Collapse
#xtranslate :: =>  Self:

what about add
Code (fw): Select all Collapse
#xtranslate Self: => ::
greeting,

Jimmy
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour warnings
Posted: Thu Oct 13, 2022 10:20 AM
I have been able to solve the problem using something like this:

Code (fw): Select all Collapse
#xtranslate { | <xVar> | <uAction> } => { | <xVar> | ( <xVar> ), <uAction> }
#xtranslate { | <xVar1>, <xVar2> | <uAction> } => { | <xVar1>, <xVar2> | ( <xVar1>, <xVar2> ), <uAction> }
#xtranslate { | <xVar1>, <xVar2>, <xVar3> | <uAction> } => { | <xVar1>, <xVar2>, <xVar3> | ( <xVar1>, <xVar2>, <xVar3> ), <uAction> }
#xtranslate { | <xVar1>, <xVar2>, <xVar3>, <xVar4> | <uAction> } => { | <xVar1>, <xVar2>, <xVar3>, <xVar4> | ( <xVar1>, <xVar2>, <xVar3>, <xVar4> ), <uAction> }
#xtranslate { | <xVar1>, <xVar2>, <xVar3>, <xVar4>, <xVar5>, <xVar6> | <uAction> } => { | <xVar1>, <xVar2>, <xVar3>, <xVar4>, <xVar5>, <xVar6> | ( <xVar1>, <xVar2>, <xVar3>, <xVar4>, <xVar5>, <xVar6> ), <uAction> }

#xtranslate { | <xVar> | <uAction>, <uAction2> } => { | <xVar> | ( <xVar> ), <uAction>, <uAction2> }
#xtranslate { | <xVar1>, <xVar2> | <uAction>, <uAction2> } => { | <xVar1>, <xVar2> | ( <xVar1>, <xVar2> ), <uAction>, ( <uAction2> ) }
#xtranslate { | <xVar1>, <xVar2>, <xVar3> | <uAction>, <uAction2> } => { | <xVar1>, <xVar2>, <xVar3> | ( <xVar1>, <xVar2>, <xVar3> ), <uAction>, ( <uAction2> ) }

Continue the discussion