![]() |
|
No such thing as a small change | |
PerlMonks |
Re^3: Code Foldingby eric256 (Parson) |
on Dec 30, 2008 at 21:37 UTC ( #733344=note: print w/replies, xml ) | Need Help?? |
I don't think you do acheive the same result, though i havn't managed to get the wX library to install so i'm not sure.
Now if you fold that recursively you get sub test { ... }and then a recursive unfold yeilds to original back. However a non recursive unfold returns
So there are cases where a user might want a recursive fold/unfold, and other where they do not. Now if you through in remembering the fold state, maybe i've already folded the "100 lines of crap" but i left "10 lines of good stuff" unfolded. If i did a non recursive fold on test, and then a nonrecursive unfold i would still be able to see my "5 important lines" and the "10 lines of good stuff" but the "100 lines of crap would not be unfolded". If however you alwas do a recursive fold/unfold then as soon as i unfold test it unfolds my "100 lines of crap" ___________ Eric Hodges
In Section
Meditations
|
|