If n can be zero, it’s up to the developer of demo1 to protect references to x
if (n>0) x(1) = 3.0 ! <- no more error
If n can be zero, it’s up to the developer of demo1 to protect references to x
if (n>0) x(1) = 3.0 ! <- no more error