[e-lang] E 0.9.1b Breaks Old Code

Toby Murray toby.murray at comlab.ox.ac.uk
Fri Feb 22 04:24:21 EST 2008


Duh. Should have realised this. Thanks Kevin.

On Thu, 2008-02-21 at 20:29 -0500, Kevin Reid wrote:
> On Feb 21, 2008, at 19:57, Toby Murray wrote:
> 
> > I've got some old E code that fails to run correctly on newer versions
> > of the E runtime (specifically with the current stable 0.9.1b and
> > current svn head).
> >
> > The specific problem seems to be that remote captp URIs are being
> > resolved to null, rather than far references.
> >
> > Example code below:
> >
> > $ cat testClient.e
> > def getObjectFromURI(uri) :any {
> >     introducer.sturdyFromURI(uri).getRcvr()
> > }
> 
> 
> This is the "easy-return" syntax switch.
> 
> All method and function bodies now return null, unless you use the  
> return-ejector.
> 
> def getObjectFromURI(uri) {
>      return introducer.sturdyFromURI(uri).getRcvr()
> }
> 
> Before easy-return, the rule was that the result guard is void by  
> default, so writing an explicit result guard enabled returning a  
> value; this is why your code has ":any".
> 



More information about the e-lang mailing list