region - end region

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

why does a mismatched region/end region result in a compilation error? surely
it should be a warning as it is only relevant to the ide and does not affect
the underlying code?

it isnt a problem , i am just interested:)
guy
 
guy said:
why does a mismatched region/end region result in a compilation error?
surely
it should be a warning as it is only relevant to the ide and does not
affect
the underlying code?

'#Region...#End Region' is a preprocessor directive like '#If...#End If',
and thus checked at compile time.
 
Hi Herfried,
maybe i dindt word the question right, I realise that #Region is a
preprocessor directive, what i am puzzled by is why a mismatch produces an
exception rather than just a warning

guy
 
guy said:
maybe i dindt word the question right, I realise that #Region is a
preprocessor directive, what i am puzzled by is why a mismatch produces an
exception rather than just a warning

It produces a compile time /error/. ''#Region...#End Region' is part of the
syntax, so there will be an error if something is wrong and not a warning.
 
Back
Top