lotus notes - Lotusscript Libraries and DRY -


i created set of lotusscript libraries purpose of reusing in other domino applications.

i tried refactor , take const declarations (for custom errors) in libaries , put in new library named customerrors. error numbers declared here intended generic (e.g. param_is_nothing, database_not_found, etc.) use libraries in set.

the problem is, when client code references 2 libraries use customerrors library, "public symbol declared in module" error shows up.

here's question: there way structure lotusscript libraries can achieve form of reusability?

if have 2 separate libraries (tom , jerry, say) both reference 1 library 'custom errors', , code (in form, say) referring both tom , jerry, there should not error.

sometimes notes gets confused order of script libraries. first friend 'tools/recompile lotusscript'.

if doesn't work , have teamstudio configurator, run change of use " use " (which ensure script libraries dependancies recompiled). sadly, third-party tool recompiles better ibm ones.

as last, brachial resort, it's worth re-creating 2 libraries causing troubles.

rename tom tom_old renname jerry jerry_old

create scratch 2 new scriptlibraries called tom , jerry

paste content tom_old tom (mutatis mutandis jerry)

(this assuming have looked tom , jerry constant possibly doubled)


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -