@strict across includes
#2915
vurvdev
started this conversation in
Suggestions
Replies: 1 comment
-
|
I would make #include file remain strict, just ignore it's warnings. So avoidable runtime errors still would crash chips. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, if you
#includea file, it will be@strictif the file including it is, even if the included file is not@strict.This wasn't a problem before, but now that there are some
@strict-specific warnings, it's created some confusion.For example:
foo.txtbar.txtIf you open
bar.txton its own, it will have no warnings. This is because legacy udfs are created at runtime.But if you include it via
foo, you'll get warnings from the include, as functions are static objects, and nesting them will do nothing.Solution
My thought for a solution was to simply properly have files be
@strictwith their own directives. I don't think it should leak into includes. This may cause some unforeseen issues though, so I am creating this discussion as an RFCBeta Was this translation helpful? Give feedback.
All reactions