Feature Request: Scope..End Scope

BlitzMax Forums/BlitzMax Programming/Feature Request: Scope..End Scope

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This would basically be nothing more than a scope. It has no conditions for use and such, it's just a way of organizing locals and setting up a specific scope for them.

E.g.,
Strict

Scope
  Local p! = Pi
  Print p
End Scope

Scope
  Local p% = Int(Pi)
  Print p
End Scope

Print p ' <- Would throw an error because p is part of the above scope


This really would only benefit people who use [Super]Strict as scopes are pretty much meaningless without it, but I think this would help for keeping things organized.