The Artima Developer Community
Sponsored Link

Java Community News
Cay Horstmann on the Meaning of Return

15 replies on 2 pages. Most recent reply: Apr 28, 2007 11:26 AM by Jules Jacobs

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 15 replies on 2 pages [ « | 1 2 ]
Jules Jacobs

Posts: 119
Nickname: jules2
Registered: Mar, 2006

Re: Cay Horstmann on the Meaning of Return Posted: Apr 28, 2007 11:26 AM
Reply to this message Reply
Advertisement
If return returns from the method (which is strange but ok.), couldn't we implement callcc?

anything callcc(Closure closure){
  closure.call({anything x => return x;})
}


Cool :).

Flat View: This topic has 15 replies on 2 pages [ « | 1  2 ]
Topic: Distributed XA Transactions with Spring Previous Topic   Next Topic Topic: Elliotte Rusty Harold on Type Inference for Java, and on Moving On

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use