[prev in list] [next in list] [prev in thread] [next in thread] 

List:       e-lang
Subject:    Re: [e-lang] E 0.9.1b Breaks Old Code
From:       Toby Murray <toby.murray () comlab ! ox ! ac ! uk>
Date:       2008-02-22 9:24:21
Message-ID: 1203672261.5710.0.camel () localhost ! localdomain
[Download RAW message or body]

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".
> 

_______________________________________________
e-lang mailing list
e-lang@mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/e-lang
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic