numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Make Clusters hierarchical #1

Open numeredev opened 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Is your change request related to a problem? Please describe. It's currently not possible to create hierarchical data structures, which makes mode advanced code nearly impossible.

Describe the solution you'd like Clusters should be able to contain anything, which means that they will need to contain themselves. Think about a syntax to identify an embedded object, e.g.

{x,y,{a,b,c},z} ~= {x,y,_~&_CSTREF,z}
cst{3} = addressof(CST{}); INTEGER
abc{} = copyof(cst{3});
abc{} = cst{3}{} REFERENCE?
abc{} = {x,y,{a,b,c},z}
abc{} = {x,y,TAB(),z}
abc{3} = {a,b,c}

Describe alternatives you've considered No alternative available

Additional context Migrated from here: https://sourceforge.net/p/numere/tickets/608/

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Enabling something like this requires that we adapt the mu::value_type typedef once more to enable arbitrary internal data types.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST