Bugs in latest Harbour

User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Bugs in latest Harbour

Post by karinha »

Master Antonio se puede hacer asi, ó no?

Code: Select all | Expand


#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
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

Antonio,

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

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

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 76 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

João,

Yo entiendo que debería ser asi:

Function Cube( n )

Return n ** 3
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Bugs in latest Harbour

Post by karinha »

master, in xHarbour:

Image
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Bugs in latest Harbour

Post by karinha »

Master xHarbour con *:

Image

????

Cual és el correcto?

Gracias, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 76 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

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
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Re: Bugs in latest Harbour

Post by Gale FORd »

It looks like SET HARBOURCMD does not work like you expect.
I get the same error if I use

Code: Select all | Expand

C:\HARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3
C:\HARBOUR>harbour test
 

It compiles ok if I use

Code: Select all | Expand

C:\HARBOUR>harbour test /a /es2 /gc0 /m /n /q /w3
 
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

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
Post Reply