Re: What is cached result for? And how to get real cached results?

Steve Dekorte <[email protected]>
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>
On 2011-06-16 Thu, at 03:31 AM, [email protected] wrote:
> What is the cachedResult for? When trying to find them with the debugger (by looking for messages that have hasCachedResult true) I don't find any.

Hi Jan,

They are typically for literals. e.g.

Io> message(1) cachedResult
==> 1
Io> message("foo") cachedResult
==> foo
Io> message(a+b) cachedResult
==> nil


> And how to get the intermediate result in a message chain? For example I have 1 +(1) +(1) -(1) +(1) +(1) and I wan't to get the result of the -(1) when it flies along in the debugger, how do I get its return value?''

A good question - I'll have to look into it.

Cheers,
Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.