Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala CPS plugin #38

Closed
monisa opened this issue Mar 3, 2011 · 7 comments
Closed

Scala CPS plugin #38

monisa opened this issue Mar 3, 2011 · 7 comments

Comments

@monisa
Copy link

monisa commented Mar 3, 2011

import com.ControlContext._
object Example {
def main(args: Array[String]){
reset {
println(1)
shift
{
(cont: Unit => Unit) =>
cont()
cont()
}}}}
This is my code for shift and reset concept. Am compiled in eclipse, Its says "this code has to be compiled with the Scala CPS plugin". How can i debug this error. please save me.

@rossabaker
Copy link
Member

Is this part of a Scalatra (the web framework) app, or just general Scala (the language)?

Anyway, please have a look at http://stackoverflow.com/questions/4556540/continuations-in-scala-2-8-1-and-eclipse.

@monisa
Copy link
Author

monisa commented Mar 7, 2011

Thank you sir,Now i got the point.

@monisa
Copy link
Author

monisa commented Mar 7, 2011

we are planning to use continuation support in the scala language through shift and reset to track the users who are logged in(We are trying to use this instead of using session or cookie to track the users logged in). So please provide us any sample programe to implement the continuation support through shift and reset to track the logged users in scala.

@rossabaker
Copy link
Member

It's an interesting idea, but as far as I know nobody has done anything like that with Scalatra. You're welcome to ask on the mailing list to see if anyone else has any experience with this approach.

@monisa
Copy link
Author

monisa commented Mar 10, 2011

Can you provide us any sample program to implement the continuation support in the scala language through session or cookie to track the users logged in.

@monisa
Copy link
Author

monisa commented Mar 21, 2011

Could you provide some materials based on shift and reset concept......

@casualjim
Copy link
Member

the scala mailing list is the right place to go with these questions.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants