Skip to content

Would it be possible to add pragmas on TYPE declaration? #14

Answered by theBadT
PTKu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PTKu,

I'm one of the product owners for SIMATIC AX responsible for the implementation of the IEC 61131-3 ST standard.

Currently, we do not allow pragmas in every location, but only dedicated ones.
Given the definition of the TYPE construct, I'm not particularly sure, in how far and why you'd want to be able to put a pragma on top of it. Could you please elaborate on that?

I'm telling you this, because I assume there is a misconception of the concept of a TYPE vs. a type (and yes, the casing is important to make that point).
TYPE END_TYPE is nothing but a container. Like a section that says "within this particular part of the file, I'm going to declare types that are not known to the s…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@theBadT
Comment options

@PTKu
Comment options

@PTKu
Comment options

@theBadT
Comment options

@PTKu
Comment options

Answer selected by PTKu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants