Hi

I thought about adding code folding to mvDeveloper, but with Pick/Basic it 
doesn't really work in the same way.

If you have a language that is function or member based, there is a very clear 
boundary for each function, e.g.

private void doSomething{
  code in here
}

which makes it easy to collapse.

The problem with Pick/Basic is that there isn't always a clear boundary.
If your subroutines are all like this, it will work:

GoSub MySubroutine

MySubroutine:
  code here
Return

But an IDE or editor has to be able to cope with bad style/design as well as 
good, so you may have the following:

If SomeTest Then
   GoSub MySubroutine
End Else
   GoSub JumpIntoTheMiddle
End

MySubroutine:
   If SomeTest Then
      Return
   End
   (code)
   (falls down into...)
JumpIntoTheMiddle:
   (some more code)
    Return

Here you have overlapping labels, and more than one return. Which means that 
the boundary isn't clear. It can be done, but it makes it more complicated.

Brian
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to