Contexts may be defined in conditionally executed code-blocks. Other definitions are not allowed there. #281

Closed
meijeru opened this Issue Oct 30, 2012 · 2 comments

Comments

Projects
None yet
2 participants

meijeru commented Oct 30, 2012

Although the specification clearly says that context definitions are a compile-time matter, it still is not very nice to see

if false [c: context [d: 1]]

being allowed, and resulting in context c being available subsequently. Aliases, e.g. are not allowed in the code-block of an if statement.

Owner

dockimbel commented Oct 30, 2012

Agreed.

dockimbel added a commit that referenced this issue Oct 30, 2012

FIX: issue #281 (Contexts may be defined in conditionally executed co…
…de-blocks. Other definitions are not allowed there)
Owner

dockimbel commented Oct 30, 2012

Now a compilation error will be raised in such case.

@dockimbel dockimbel closed this Oct 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment