Replies: 1 comment
-
|
I think this is just something that I missed. I set up the The intent is that the If someday there was a need for two different |
Beta Was this translation helpful? Give feedback.
-
|
I think this is just something that I missed. I set up the The intent is that the If someday there was a need for two different |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Great library!
It seems like the command list is shared between instances, since SimpleSerialShell::firstCommand is static. So therefore, should SimpleSerialShell::addCommand() be static as well for clarity purposes?
Either that, or should SimpleSerialShell:firstCommand be non-static? That would create the considerable advantage of allowing multiple independent instances of the shell processor to exist in the same program (connected to independent Streams, with independent command sets).
Thinking about that more, if the intention is to force a single instance per process (which is fine), perhaps the constructor should be made private so that a second instance can't be created? That would also improve clarity as to the intent.
Thanks,
Bruce
Beta Was this translation helpful? Give feedback.
All reactions