2008/4/24 Jon Harrop <[EMAIL PROTECTED]>: > Actually that is exactly a case handled by tail calls: the method is > parameterized over the continuations that it will call. This is very common > in functional programming and is called continuation passing style (CPS). > Some functional compilers (e.g. SML/NJ) automatically do this to all code.
So it works if you do a CPS transformation on all your code leaving your frames on the heap. In that case you can tail call a continuation to simulate the exception. I am interested in this approach. I like the flexibility that CPS style gives (perhaps different exception models to the norm). However, wouldn't this approach have other performance consequences (mainly the heap-based frames)? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---
