niieani / bash-oo-framework

Bash Infinity is a modern standard library / framework / boilerplate for Bash
https://github.com/niieani/bash-oo-framework/discussions
MIT License
5.57k stars 247 forks source link

Using a variable for an Object name #97

Open Lampboii opened 3 years ago

Lampboii commented 3 years ago

Hello, first off, this is super cool. I was trying to dynamically create an object like so SomeClass $($var:someVariable), this works and the object is created. The issue arises when I try to access that object's properties or methods like this $var:$($var:someVariable) or $var:$someVariable which does not work and throws "Undefined Command". Am I doing this wrong or this just doesn't work?