3 ms·
Kind of meta question: local engine = EngineFactory.new() I expect that a new instance of a factory class is a factory, not an engine. To get an engine, jus
by pmontra 2y ago
Kind of meta question:
local engine = EngineFactory.new()
I expect that a new instance of a factory class is a factory, not an engine. To get an engine, just create a new instance of an engine class.
Examples of what I expect:
local engine = Engine.new()
or a more convoluted
local factory = EngineFactory.new()
local engine = factory:build_engine()
- mococa 2y agoGood catch. I will fix this, thank you!