Message81023
| Author | benjamin.peterson |
|---|
| Recipients | Carl.Friedrich.Bolz, amaury.forgeotdarc, arigo, benjamin.peterson, fijal, mark.dickinson |
|---|
| Date | 2009-02-03.01:56:04 |
|---|
| SpamBayes Score | 0.004040998 |
|---|
| Marked as misclassified | No |
|---|
| Message-id | <1233626166.55.0.417082385063.issue1875@psf.upfronthosting.co.za> |
|---|
| In-reply-to | |
|---|
| Content |
|---|
You should remove the error logic compile.c for "return" and "yield" infunction calls.The problem with this approach is that every SyntaxError generatedduring bytecode compilation must be moved to earlier. For example, I canstill use "break" and "continue" outside loops with your patch. The onlyway I can think of around this is to compile the block anyway and removethe extra code later. Maybe this optimization could be moved to the peepholer? |
|