# Table

### Get Raw Metatable

{% code lineNumbers="true" %}

```typescript
<table> getrawmetatable(<table> a1)  
```

{% endcode %}

* Returns the `__metatable` of `a1`.

***

### Is Read Only

{% code lineNumbers="true" %}

```typescript
<bool> isreadonly(<table> a1)  
```

{% endcode %}

* Returns if `a1` is read-only.

***

### Is Writable

{% code lineNumbers="true" %}

```typescript
<bool> iswritable(<table tbl>)
```

{% endcode %}

* Checks if `tbl` is writable, i.e., if its fields can be modified.

> Alternative: `iswriteable`

***

### Make Read Only

{% code lineNumbers="true" %}

```typescript
<void> makereadonly(<table tbl>)
```

{% endcode %}

* Makes `tbl` read-only, preventing modifications to its fields.

> Alternative: `make_readonly`

***

### Make Writable

{% code lineNumbers="true" %}

```typescript
<void> makewritable(<table tbl>)
```

{% endcode %}

* Makes `tbl` writable, allowing its fields to be modified.

> Alternative: `make_writable`, `make_writeable`, `makewriteable`

***

### Set Raw Metatable

{% code lineNumbers="true" %}

```typescript
<bool> setrawmetatable(<table> a1, <table> a2)
```

{% endcode %}

* Sets the `__metatable` of `a1` to `a2`.

***

### Set Read Only

{% code lineNumbers="true" %}

```typescript
<void> setreadonly(<table> a1, <bool> a2)  
```

{% endcode %}

* Sets the read-only value of `a1` to `a2`.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://duckys-playground.gitbook.io/wave/functions/table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
