Closed 42sol-eu closed 8 months ago
Do you want to do this one? If so please create a branch to work on.
sure thing.
my idea would be to move toFile inside a class that also has the writeMarkdown()
function.
that should not be invasive to the code.
Sounds good to me.
OK. I am having a chicken and egg problem with this.
There are three basic ways to do it:
This heavily moves stuff so it is hard to merge later!
Much less intrusive but a bit ugly in the writeMarkdown function.
A good measure to remove the lingering crash whilst keeping the code.
What would you prefer?
The class way is best.
OK. I will do my best not to break anything here. I love the class way the best too.
This is lost in the mists of time. Closing. Reopen if still relevant.
the global variable
toFile
is accessed in line 25, 54 ... without passing it to the function. it is neither declared asglobal
nor checked if it is opened.Solutions?
toFile
and opens the file at creation. then moving all corresponding functions into the interface of the class so the file is always available.toFile
as a parameter on every function call that needs it.toFile
as global innige functions that access it and check it on type FileObject (this might be even done inwriteMarkdown()
)toFile
insidewriteMarkdown()
and check it there