mpscilab

Issue 578: mpsB = mpsA do not clone

Reported by Allan Cornet, Nov 13, 2011

-->mpsA = mps_ones(100)
 mpsA  =
 
  1.
 
-->mpsB = mpsA
 mpsB  =
 
  1.
 
-->mps_clear(mpsA)
 
-->mpsB 
 mpsB  =
 
Warning !!!
Scilab has found a critical error (EXCEPTION_INT_DIVIDE_BY_ZERO)
with "scimps" function.
Save your data and restart Scilab.


do not see any ref in help about mpsB = mpsA is a alias and not a 
clone

Comment 1 by Jonathan Blanchard, Nov 13, 2011

It's explained in the MPScilab-Basics section. This is not a 
supported operation since it is not possible to overload a copy 
operation in Scilab.

It was deemed an acceptable limitation at the time of designing the 
toolbox. There is no workaround at the moment.

Created: 9 years 11 months ago by Allan Cornet

Updated: 2 years 2 months ago

Status: New

Followed by: 2 persons

Labels:
Priority:Medium
Type:Defect