News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

New UserVarManager implementation

Started by BlueHazzard, August 24, 2022, 01:34:25 AM

Previous topic - Next topic

AndrewCot

An issue I just came across and it's in the existing implementation a well is that there are no errors in the log if a variable is not found due to using the wrong variable set. May be an idea to add logging of errors/warnings when variables are not found.

BlueHazzard

My idea was to return a error log in the ReplaceMacros function. So it could be outputed to the compiler log during compiling and in the codeblocks log when other. I mean if i compile something and then it does not work, it would be nice to see in the compiler log...

AndrewCot


ollydbg

Quote from: BlueHazzard on September 19, 2022, 11:33:09 PM
My idea was to return a error log in the ReplaceMacros function. So it could be outputed to the compiler log during compiling and in the codeblocks log when other. I mean if i compile something and then it does not work, it would be nice to see in the compiler log...

I totally agree with this idea.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

AndrewCot

I could not find the implementation of the following:
    wxString GetMemberValue(const wxString & setName, const wxString & varName, const wxString & memberName) const;