Re:I don’t buy “duplication is cheaper than the wrong abstra...
by wvenable on Wednesday August 30, 2023 @04:39PM
(#37328738)
Get a better editor. I can mouse of FILE_HEADER_OFFSET anywhere it's used and get the value.
But still your describing a bit of a wild setup. If the value of FILE_HEADER_OFFSET is 42, how did you come to calculating the value? What if MEMORY_BLOB_OFFSET is also coincidentally 42? If you have dozens of source files filled with literal magic values that's completely unmaintainable and inscrutable.
But still your describing a bit of a wild setup. If the value of FILE_HEADER_OFFSET is 42, how did you come to calculating the value? What if MEMORY_BLOB_OFFSET is also coincidentally 42? If you have dozens of source files filled with literal magic values that's completely unmaintainable and inscrutable.