readonly - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


The Readonly Indexing Function

 

Calling Sequence

Description

Examples

Calling Sequence

table(readonly, ...)

Description

• 

The readonly indexing function is used to create a table for which assigning new entries is illegal. Any object can be initially stored in a table that uses the readonly indexing function, but trying to into the table will raise an exception.

Examples

only empty readonly tables can be created directly

tablereadonly,

tablereadonly,

(1)

tablereadonly,a=1,b=2

Error, (in `index/readonly`) cannot assign to a readonly table

non-empty read only tables can created by replacing a indexing function in an existing table, with readonly

Tsubsop1=readonly,tablea=1,b=2

Ttablereadonly,a=1,b=2

(2)

Ta

1

(3)

Tc1

Error, (in `index/readonly`) cannot assign to a readonly table

Ta1

Error, (in `index/readonly`) cannot assign to a readonly table

See Also

indexfcn

rtable_indexfcn