marqdo

Objects and methodsok

features/04-objects.mq.md

文档

main

说明

In Marqdo, a single sharp (#) defines an object / type constructor. Double sharp and deeper (## …) define free functions or methods. Constructing an object yields a map handle tagged with _type. Call methods with backtick object, then dot, then method name.

See doc/design/objects.md. Example gold: tests/structure/object-handle.mq.md. Official ext/llm and ext/agent use this pattern.

> print text=objects-ok
Functions
Variables
  • description text
    Sharp heading is a type; deeper headings are functions or methods
  • markup text
    occlusion
  • title text
    Objects and methods
可执行知识(辅助)

文档中的步骤

结构步骤(非实际执行时序)

  1. call print

运行与结果

objects-ok
完整源码
---
markup: occlusion
title: Objects and methods
description: Sharp heading is a type; deeper headings are functions or methods
---

# main

In Marqdo, a single sharp (#) defines an object / type constructor. Double sharp and deeper (## …) define free functions or methods. Constructing an object yields a map handle tagged with _type. Call methods with backtick object, then dot, then method name.

See doc/design/objects.md. Example gold: tests/structure/object-handle.mq.md. Official ext/llm and ext/agent use this pattern.

> print text=objects-ok

Variable