FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bugs in latest Harbour
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:11 PM
Master Antonio se puede hacer asi, ó no?

Code (fw): Select all Collapse
#include "FiveWin.ch"

MEMVAR x

FUNCTION MAIN()

   // ? 1 ^^ 2

   x := Cube( 2 )

   ? x

RETURN NIL

Function Cube( n )

Return n ** 1.585


Asi, funciona com Harbour y xHarbour, mas no see se está correcto.

https://books.google.com.br/books?id=vrtI4i8kA4EC&pg=PA41&lpg=PA41&dq=operadores+matem%C3%A1ticos+clipper&source=bl&ots=TJukevCRHR&sig=m4pui-IeRVXiRIGHbDlRyk5Mfh4&hl=pt-BR&sa=X&ved=0ahUKEwidhKDsqqLKAhWMIZAKHXKIAo8Q6AEIIjAB#v=onepage&q=operadores%20matem%C3%A1ticos%20clipper&f=false
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:20 PM

Antonio,

ops, sorry, I missed the url! :-)

Anyway, I used both /n and /w3, as in my sample up in this thread.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:25 PM

João,

Yo entiendo que debería ser asi:

Function Cube( n )

Return n ** 3

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:37 PM
master, in xHarbour:

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:41 PM
Master xHarbour con *:



????

Cual és el correcto?

Gracias, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 06:51 PM
João,

In xHarbour ^^ has this meaning:

<x> ^^ <y> - bit xor


https://github.com/harbour/core/blob/master/doc/xhb-diff.txt
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 08:46 PM
It looks like SET HARBOURCMD does not work like you expect.
I get the same error if I use
Code (fw): Select all Collapse
C:\HARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3 
C:\HARBOUR>harbour test

It compiles ok if I use
Code (fw): Select all Collapse
C:\HARBOUR>harbour test /a /es2 /gc0 /m /n /q /w3
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Fri Jun 30, 2017 02:37 PM

I confirm, HARBOURCMD is broken in Harbour, even in the latest nightly build. As an example:

SET HARBOURCMD=-a -es2 -gc0 -ie:\harbour\include -n -q -w3

The switch -i in HARBOURCMD is ignored (while the other switches seem to work). But this work instead:

harbour test -ie:\harbour\include

EMG

:-(

Continue the discussion