Hello Guys,

Is "Namespaces" not a solution this?

Patrick

On Fri, Nov 6, 2009 at 2:56 AM, Eduardo Fernandes
<modals...@yahoo.com.br> wrote:
> Ron,
>
> I'm curious about what intention on application with these results:
>
> str('a',10,2) -> '     97.00'
> strzero('b',10) -> '0000000098'
> padl("9","*",10) -> 42 spaces + "9"
> padr("9","*",10) -> "9" + 42 spaces
> padc("9","*",10) -> 20 spaces + "9" + 21 spaces
>
> IMO, this can cause damage on the expected results, mainly from Clipper 
> legacy applications.
>
> I still think more prudent to separate this *feature* in HB_IS_NUMERIC_EXT 
> and use it only on specific issues.
>
> Please, consider it.
>
> Eduardo
>
> --- Em qui, 5/11/09, Ron Pinkas <ron.pin...@xharbour.com> escreveu:
>
>> De: Ron Pinkas <ron.pin...@xharbour.com>
>> Assunto: Re: [xHarbour-developers] Proposal for HB_IS_NUMERIC.
>> Para: "Eduardo Fernandes" <modals...@yahoo.com.br>, "Xharbour-Developers 
>> List" <xharbour-developers@lists.sourceforge.net>
>> Data: Quinta-feira, 5 de Novembro de 2009, 17:48
>> Eduardo,
>>
>> > So, we could review all string functions like str(),
>> strzero(), pad(), etc, that call HB_IS_NUMERIC(),
>> HB_IT_NUMERIC or ISNUM() to maintain, at least, expected
>> results or run time error, if any argument is inverted or
>> with any data type changed.
>> >
>> > f.e.:
>> >
>> > ? str("a",10,2)
>> > ? strzero("b",10)
>> > ? padl("9","*",10)
>> > ? padr("9","*",10)
>> > ? padc("9","*",10)
>>
>> Please note that it is absolutely VALID CODE to pass a
>> single char as a NUMERIC value. I have lot's of such code
>> intentionally. It would therefore be wrong to break a
>> documented feature which has been working for years.
>>
>> Ron
>>
>
>
>      
> ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to