OpenModelica


Forgot password? | Forgot username? | Register

keyword "within"

keyword "within"

Do you have a clear explane to explain how to use the "within" keyword? in the guides it's not clear, do you have a pratical example please?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: keyword "within"

I use the "within"-statement to define the position of a new model within the model library.
I do not use the function "save in one file" when creating new packages. Instead of this Option, every package is a new file (which prevents data loss). After I created a new model, I first add the within-statement, e.g.
package - Test
model - Test01: first line in code: within Test;
model - Test01a: first line in code: within Test.Test01;
....

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic
You are here: