My favorites | Sign in
Project Logo
                
Feeds:
People details
Project owners:
  drandrewschein

pa_breakcont

This project makes use of the Ocaml release 3.10 macro system to add break and continue statements to for and while loops.

The macros implement these statements as exceptions. Since the introduction of the two try/with blocks corresponding (each) to the (separate) break and continue exceptions includes some overhead at run time, the macro adds these try/with blocks sparingly... only if the programmer uses the corresponding statement. For example, the continue statements adds the most overhead since it causes a try/with block to be inserted within a loop. However, code that contains no continue statement will be unaffected by the macro.

It seems to work. Let me know if it doesn't.









Hosted by Google Code