Discipline functions members of nested types #692
Replies: 2 comments
-
I don't know what version you are running but I am on Ksh 93u+m/1.0.0-beta.2 2021-12-17 and I get a different result to you. Have you posted the correct results? Now as to your question about not being able to 'trigger' the Inner_t get. From my understanding on how user defined types work, your definition of the Outer_t get has replaced the Inner_t get. If you give the functions meaningful/unique names (you are not limited to the discipline names) then all should be ok. See the 2 examples below.
Example 1
Example 2
|
Beta Was this translation helpful? Give feedback.
-
@TristanJamesBall; I've just updated to 93u+m/1.0.8 2024-01-01 and am getting the same results that you are. I made several changes to your example but without rewriting it was unable to get the results you were looking for. My only suggestion is for you to have another think about what you want to achieve and rewrite it using the KISS principle and the examples I sent you for ideas. Sorry that I can't offer another solution to you. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if I'm doing something wrong here, but I can't seem to trigger the 'get' discipline on the i member an Inner_t variable when that variable is defined inside another type - but it works fine when the variable is stand alone?
Happy to log a bug for this of course, just wanted to make sure I'm not doing something goofy first?
Output:
I'd be expecting
Beta Was this translation helpful? Give feedback.
All reactions