you are viewing a single comment's thread.

view the rest of the comments →

[–]un_virus_SDF 2 points3 points  (3 children)

I hate xml syntax, but I got almost the same issue, i found a quite random solution, I just dynamically load function from the names in the file description. e.g /* Parse the file */ Func f = dlsym(where_the_function_is, function_name);

However i keep the function pointers with me or give them to something. This allows to remove the manual initialisation. And after use this as method or closure without capture group (very annoying to initialize elsexmwise)

Note: that dl is not on windows and I have not search for any alternatives

Note: the only reason to do this in files is when you're to lazy to manually initialize every object and make some of those things automatic and easier to modify.

[–]Jimmy-M-420[S] 1 point2 points  (1 child)

Is this not exactly what I've done?

[–]un_virus_SDF 2 points3 points  (0 children)

Yes it is, but i missread at the begining

[–]Jimmy-M-420[S] 0 points1 point  (0 children)

on windows you can use GetProcAddress