Skip to content

Conversation

@HansOlsson
Copy link
Collaborator

Closes #3772
It explains the existing use of n+0.

I use "should" to not discuss the edge-cases, in particular:

  • Unused connectorSizing-variable could perhaps be used in a base-class, but it seems odd to me (how do you know that you will have such a connector without knowing name and type?)
  • Multiple vector of connectors using n will work in some cases, but not in all cases.

@HansOlsson HansOlsson requested a review from henrikt-ma November 3, 2025 15:11
HansOlsson and others added 2 commits November 4, 2025 08:45
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
@henrikt-ma
Copy link
Collaborator

My suggested changes to the non-normative paragraph should have converged now.

The annotation allows a tool to perform these two actions in many cases automatically.
This is, e.g., very useful for state machines and for certain components of fluid libraries.

If a variable \lstinline!n! with \lstinline!connectorSizing = true! does not have exactly one associated vector of connectors, a diagnostic is recommended.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the normative text says shall, I think this non-normative paragraph would make more sense without the recommendation to give diagnostics, leaving it to tools to figure out their own ways of dealing with misuse of the annotation.

Github doesn't let me comment on the entire paragraph of three lines, but this suggestion is meant to replace the entire paragraph:

If a variable \lstinline!n! with \lstinline!connectorSizing = true! has multiple associated vectors of connectors, some of the graphical operations described below will not work reliably.
If there is no associated vector of connectors, the user may choose to address this by removing the \lstinline!connectorSizing! annotation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have now added with slight modification.

@HansOlsson HansOlsson requested a review from henrikt-ma November 5, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sensible interpretation of connectorSizing tied to several connectors?

2 participants