Page 3 of 3

Re: Harbour warnings

Posted: Sat Jun 25, 2022 3:40 pm
by nageswaragunupudi
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.

Re: Harbour warnings

Posted: Sat Jun 25, 2022 3:49 pm
by Enrico Maria Giordano
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: Select all | Expand

<.center.>, [{|Self|<uValid>}],;


EMG

Re: Harbour warnings

Posted: Sat Jun 25, 2022 3:53 pm
by rhlawek
You are correct, I missed the fact of the comma.

Re: Harbour warnings

Posted: Sun Jun 26, 2022 8:48 pm
by Jimmy
hi,

in c:\fwh\include\objects.ch i found this

Code: Select all | Expand

#xtranslate :: =>  Self:

what about add

Code: Select all | Expand

#xtranslate Self: => ::

Re: Harbour warnings

Posted: Thu Oct 13, 2022 10:20 am
by Enrico Maria Giordano
I have been able to solve the problem using something like this:

Code: Select all | Expand

#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> ) }