[bug #59775] "error: mark_as_constructed: invalid object" when constructor returns classdef array

Thomas <[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 #14, bug #59775 (group octave):

Hi Markus, thanks so much for the review, I don't consider it late, I'm very
grateful for whatever time you spare.

Sloppy work on my part with the OCTINTERP_API, I knew the attribute rules.
Same with the trailing whitespace, I usually do `hg export -r <rev>` or `git
show` and it shows me the whitespace, I forgot to prune it for the classdef
test files. Sorry about that.

Speaking of the classdef test files, I use MATLAB-compatible syntax because my
editor (Neovim, with several extensions) uses MATLAB syntax highlighting, and
it chokes on Octave-specific syntax like `end*` blocks. So ultimately a silly
reason, because I can pull up the classdef files in something like VS Code and
get Octave-specific syntax highlighting.

I don't have a technical argument against using Octave-specific syntax for
classdef files. So, I attached an updated version of the patch that fixes the
OCTINTERP_API/whitespace/Octave-specific classdef stuff.

(file #58442)

    _______________________________________________________

Additional Item Attachment:

Name: bug59775_v4.patch              Size: 4.5KiB
    <https://file.savannah.gnu.org/file/bug59775_v4.patch?file_id=58442>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59775>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCac8sOwAKCRCqLAuaBUf3
TgnMAQCgiaX8AGiZp4GQT3AtTE0VxcQYeik/jgE+hL6BCB2DFAD/YBD2E/PoCYsH
zNs+AJr+FDSzXnrOyST5di2OTy/3Mg0=
=NdBv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.