Miguel,

I agree that extension is preferable, but in this case, on str function, this 
have no sence. The unique purpose of str is convert a numeric var to string 
one. For it we have asc() function. IMO, this extension is uselesss on str and 
produce strange results, instead expected ones. In other way, xHarbour doesn't 
compile with HB_C52_STRICT. I got many errors.

I would like error/base instead these results:

? str('1')     // null char
? str('1',0)   //         49
? str('1',1)   // *
? str('1',2)   // 49

My 2 cents !

regards,
Eduardo

--- Em qua, 1/4/09, Miguel Angel Marchuet <miguelan...@marchuet.net> escreveu:

> De: Miguel Angel Marchuet <miguelan...@marchuet.net>
> Assunto: Re: [xHarbour-developers] Str() function.
> Para: "Eduardo Fernandes" <modals...@yahoo.com.br>
> Cc: "Ron Pinkas" <ron.pin...@xharbour.com>, "Xharbour-Developers List" 
> <xharbour-developers@lists.sourceforge.net>
> Data: Quarta-feira, 1 de Abril de 2009, 16:10
> 
> 
> 
>   
>   
> 
>  
> It
> is not always possible to maintain compatibility with the
> old clipper.
> 
> 
> Extending xHarbour is preferable. But of course if it is an
> appropriate
> use 
> 
> of Str should encounter no problem.
> 
> 
> Str works as expected actually. simply the expected is not
> the same as
> clipper.
> 
> 
> 
> But, I think can be able to add under HB_C52_STRICT only,
> but you lost
> other extensions.
> 
> 
> 
> Best regards,
> 
> Miguel Angel Marchuet
> 
> 
> 
> Eduardo Fernandes escribió:
> 
>   Ron,
> Ron,
> 
> OK, since this has nothing to do with str/strzero, I can
> fix these functions to return error base if the arguments
> are not numbers, like Clipper ?
> 
> regards,
> Eduardo
> 
> 
> --- Em seg, 30/3/09, Ron Pinkas <ron.pin...@xharbour.com>
> escreveu:
> 
>   
>   
>     De: Ron Pinkas <ron.pin...@xharbour.com>
> Assunto: Re: [xHarbour-developers] Str() function.
> Para: "Eduardo Fernandes" <modals...@yahoo.com.br>,
> "Xharbour-Developers List" <xharbour-developers@lists.sourceforge.net>
> Data: Segunda-feira, 30 de Março de 2009, 23:24
> Eduardo,
> 
> The feature has nothing to do with Str() or StrZero()
> it's
> a GENERIC SUPPORT. You can use a CHAR type as NUMERIC in
> every context that numeric is supported.
> 
> Ron
> 
> --------------------------------------------------
> From: "Eduardo Fernandes" <modals...@yahoo.com.br>
> Sent: Monday, March 30, 2009 4:33 PM
> To: "Xharbour-Developers List" <xharbour-developers@lists.sourceforge.net>;
> "Ron Pinkas" <ron.pin...@xharbour.com>
> Subject: Re: [xHarbour-developers] Str() function.
> 
>     
>     
>       Ron,
> 
> Sorry, by I don't understand what benefit the users
>       
>     
>     will have with this feature on str/strzero
> functions. This
> is not Clipper compliant and return unexpected results.
>     
>     
>       regards,
> Eduardo
> 
> 
> --- Em seg, 30/3/09, Ron Pinkas <ron.pin...@xharbour.com>
>       
>     
>     escreveu:
>     
>     
>       
>         De: Ron Pinkas <ron.pin...@xharbour.com>
> Assunto: Re: [xHarbour-developers] Str()
>         
>       
>     
>     function.
>     
>     
>       
>         Para: "Eduardo Fernandes" <modals...@yahoo.com.br>,
>         
>       
>     
>     "Xharbour-Developers List" <xharbour-developers@lists.sourceforge.net>
>     
>     
>       
>         Data: Segunda-feira, 30 de Março de
> 2009, 19:45
> Eduardo,
> 
> This is a documented intentional feature. Every
>         
>       
>     
>     STRING of
>     
>     
>       
>         ONE CHARACTER is
> NUMERIC COMPATIBLE, as per xHarbour support of a
>         
>       
>     
>     CHAR sub
>     
>     
>       
>         type.
> 
> Ron
> 
>         
>       
>       
> 
>       Veja quais são os assuntos do
>       
>     
>     momento no Yahoo! +Buscados
>     
>     
>       http://br.maisbuscados.yahoo.com
> 
>       
>     
>   
>   
> 
>       Veja quais são os assuntos do momento no
> Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
> 
> __________ Información de ESET Smart Security,
> versión de la base de firmas de virus 3981 (20090401)
> __________
> 
> ESET Smart Security ha comprobado este mensaje.
> 
> http://www.eset.com
> 
> 
> 
> 
>   
> 
>  
> 
> 
> 
> -----Anexo incorporado-----
> 
> ------------------------------------------------------------------------------
> 
> -----Anexo incorporado-----
> 
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>



      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

------------------------------------------------------------------------------
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to