[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50855] new Matlab string array syntax and str
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #50855] new Matlab string array syntax and string class |
Date: |
Tue, 1 Nov 2022 17:35:45 -0400 (EDT) |
Follow-up Comment #10, bug #50855 (project octave):
Noticing a string class was again discussed in the last developer meeting:
https://octave.discourse.group/t/octave-developer-meeting-october-2022/3512
A particular focus was on the string class (again). It might be a candidate
for an early addition during the development cycle of Octave 9 (taking
leverage of @apjanke’s .m file implementation in the tablicious package).
Having that might allow adapting a range of functions to accepting string
objects early on (even if a “final” implementation of the string class
might be in C++). Decisions for how to transition to the new syntax for double
quotes still need to be taken.
I think adding the functions from comment #8 would already be useful for
compatibility with Matlab code. Function isstring () could also be modified to
be ready for a string class:
- tf = false;
+ tf = isa (s, "string");
Also attaching my earlier work on a string class with BISTs. Methods needed to
be implemented are commented out in the file. They should probably better be
added as separate files, e.g., @string/matches.m.
(file #53924)
_______________________________________________________
Additional Item Attachment:
File name: string.m Size:25 KB
<https://file.savannah.gnu.org/file/string.m?file_id=53924>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?50855>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50855] new Matlab string array syntax and string class,
Guillaume <=