[bug #68108] classdef objects do not support creation of initialized arrays
FatYoshi17 <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #9, bug #68108 (group octave):
My patch only modifies cdef_object_array::subsasgn for the case '.'.e objects
in the array have already been constructed and the patch simply distributes
the RHS values across the array elements.
In the examples with mre2 and mre3, the assignment happens inside the
constructor while obj is still being constructed.The failure also occurs in
the loop version (obj(kk).A = a(kk)), which does not use the comma-separated
assignment path that my patch modifies.
Based on this, I think this may be a separate issue related to
mark_as_constructed and returning object arrays from constructors.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68108>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaahFMAAKCRCqLAuaBUf3 TsIiAP0QujbP8pmush2f2ZjcL5G2+06uTVGRydg8hIjUq25OKwEAvfMTsT/zfDHw shtQpYWSoyMuRS13XeLhjhTBocgVUQw= =hsx/ -----END PGP SIGNATURE-----