How to resolve the algorithm Reflection/List methods step by step in the Phix programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Reflection/List methods step by step in the Phix programming language

Table of Contents

Problem Statement

The goal is to get the methods of an object, as names, values or both. Some languages offer dynamic methods, which in general can only be inspected if a class' public API includes a way of listing them.

Let's start with the solution: