Bugs in latest Harbour

Re: Bugs in latest Harbour

Postby karinha » Mon Jan 11, 2016 6:11 pm

Master Antonio se puede hacer asi, ó no?

Code: Select all  Expand view

#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
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Mon Jan 11, 2016 6: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 6:25 pm

João,

Yo entiendo que debería ser asi:

Function Cube( n )

Return n ** 3
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bugs in latest Harbour

Postby karinha » Mon Jan 11, 2016 6:37 pm

master, in xHarbour:

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

Re: Bugs in latest Harbour

Postby karinha » Mon Jan 11, 2016 6:41 pm

Master xHarbour con *:

Image

????

Cual és el correcto?

Gracias, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bugs in latest Harbour

Postby Gale FORd » Mon Jan 11, 2016 8:46 pm

It looks like SET HARBOURCMD does not work like you expect.
I get the same error if I use
Code: Select all  Expand view
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 view
C:\HARBOUR>harbour test /a /es2 /gc0 /m /n /q /w3
 
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Fri Jun 30, 2017 2: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 31 guests