When does a Stack Actually Die in the IDE???

David Burgun dburgun at dsl.pipex.com
Sat Apr 15 07:54:47 EDT 2006


Hi,

Thanks a lot for this. One thing that has puzzled me is why you can't  
access things like the stack or card of an object. For instance why  
can't I just do this:

put the short name of the  stack of the long id of me  into myStackName

or

put the short name of the  card of the long id of me  myCardName

Which would return the name of the stack/card that the object resides  
in.

It just seems like this ought to work, in fact when I found out that  
RunRev didn't support this I was surprised!

Any ideas why this isn't supported?

All the Best
Dave

On 15 Apr 2006, at 02:33, J. Landman Gay wrote:

> Mark Smith wrote:
> > I just had a doh! moment  in response to your <the short name of
> > pStackLongID>, but then in order to see how much faster the  
> engine  does
> > this, I tested it the same way I tested my first tries (which  was
> > actually with 10000 iterations, not 1000), and
> >
> > function stackIsOpen pLongID
> >   return (the short name of pLongID is among the lines of the  
> openstacks)
> > end stackIsOpen
> >
> > takes nearly 600 ms!
>
> Interesting. I never time these things enough. It looks like if a  
> script needs to make repeated calls to the function, then your way  
> would be preferable because of the speed increase.
>
> It's been an interesting experiment, I like when the list does  
> these things.
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list