Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-13 Thread Mike Cowlishaw
t it > > would be used for if it makes no guarantees. > > > >> -Original Message- > >> From: Rick McGuire [mailto:object.r...@gmail.com] > >> Sent: 13 July 2011 11:37 > >> To: Open Object Rexx Developer Mailing List > >> Subject: Re: [Oorexx

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-13 Thread Rick McGuire
cGuire [mailto:object.r...@gmail.com] >> Sent: 13 July 2011 11:37 >> To: Open Object Rexx Developer Mailing List >> Subject: Re: [Oorexx-devel] IsString(obj) identical to >> IsOfType(obj, "STRING") or is there a difference among the two APIs ? >> >> Tho

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-13 Thread Mike Cowlishaw
gt; Subject: Re: [Oorexx-devel] IsString(obj) identical to > IsOfType(obj, "STRING") or is there a difference among the two APIs ? > > Those APIs are for some very specific and common > manipulations on objects, and are largely based on the fact > the signature guaran

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-13 Thread Rick McGuire
Those APIs are for some very specific and common manipulations on objects, and are largely based on the fact the signature guarantees of native methods can be used to ensure you are working with an exact instance of the String class. For more general usage, invoking any of the methods of an object

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Mike Cowlishaw
> IsString() is intended for tests to determine if an object > can be used for any the String APIs, not for general IsA > tests. Note the using > IsOfType() to test for a String value does not guarantee the > object can be used with the String APIs. So what might it be used for? ("APIs" inc

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
On 12.07.2011 22:21, Rick McGuire wrote: > On Tue, Jul 12, 2011 at 4:09 PM, Rony G. Flatscher > wrote: > >> On 12.07.2011 22:05, Rick McGuire wrote: >> >>> On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher >>> wrote: >>> >>> While debugging a library, I stumbled about the f

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rick McGuire
On Tue, Jul 12, 2011 at 4:09 PM, Rony G. Flatscher wrote: > > On 12.07.2011 22:05, Rick McGuire wrote: >> On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher >> wrote: >> >>> While debugging a library, I stumbled about the following behaviour: after >>> replacing >>> >>> context->IsTypeOf(obj,"STR

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
On 12.07.2011 22:05, Rick McGuire wrote: > On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher > wrote: > >> While debugging a library, I stumbled about the following behaviour: after >> replacing >> >> context->IsTypeOf(obj,"STRING") >> >> with >> >> context->IsString(obj) >> >> the resulting

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rick McGuire
On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher wrote: > While debugging a library, I stumbled about the following behaviour: after > replacing > > context->IsTypeOf(obj,"STRING") > > with > > context->IsString(obj) > > the resulting library would not behave the same. Undoing the change makes i

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
Sorry, forgot additional infos: * 64-Bit Linux * official 64-Bit Debian ooRexx 4.1.0 ---rony On 12.07.2011 21:56, Rony G. Flatscher wrote: > While debugging a library, I stumbled about the following behaviour: > after replacing > > context->IsTypeOf(obj,"STRING") > > with > > co

[Oorexx-devel] IsString(obj) identical to IsOfType(obj, "STRING") or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
While debugging a library, I stumbled about the following behaviour: after replacing context->IsTypeOf(obj,"STRING") with context->IsString(obj) the resulting library would not behave the same. Undoing the change makes it work again. Not being sure what the cause really is, I just woul