That seems… unexpected. In general, your expectation is absolutely right that these two things should give the same output.
I can’t try this out because FEM
doesn’t seem to be a registered package. One possibility is that the variable FEM
in your session does not point at the top-level module Main.FEM
. Another is that someone wrote a method
show(io::IO, ::Type{FEM.GenProp}) = ....
that writes a “wrong” display value.
Both of these are not very typical situations. You can help us help you by giving more specific context.
(PS. please don’t post screenshots of code; you are excluding people who rely on screen readers and you are making it impossible for people who want to help you to copy-paste your code.)