From a5d3cec6757da53c55a3f95cbdd261b2a3c4001e Mon Sep 17 00:00:00 2001 From: nafees Date: Sun, 7 Feb 2021 22:18:28 +0500 Subject: [PATCH] Added NaVM.instructionTable to get instruction table from NaVM class --- source/navm/navm.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/navm/navm.d b/source/navm/navm.d index d16f366..a1908d8 100644 --- a/source/navm/navm.d +++ b/source/navm/navm.d @@ -327,7 +327,10 @@ public: } return []; } - + /// a copy of the instructions table + @property NaInstruction[] instructionTable(){ + return _instructionTable.dup; + } /// Adds a new instruction /// /// Returns: true on success, false if not (pointer might be null, code might be already in use, name might already be in use)