On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher
<rony.flatsc...@wu-wien.ac.at> 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 it
> work again.
>
> Not being sure what the cause really is, I just would like to be sure that
> invoking IsString(obj) with the same object as IsOfType(obj,"STRING") should
> in both cases return identical results. Or is there some difference in howe
> these two APIs carry out their functionality, such that it is possible that
> they might return different results supplying the same object?

IsString() will only return true if the object is exactly an instance
of string.  IsOfType() will return for other objects that are not
necessarily strings, such as subclasses or even the hidden Integer and
NumberString instances.

Rick

>
> ---rony
>
>
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to