Lib:
Code: Select all
ProcedureDLL$ proc(a)
ProcedureReturn Str(a)
EndProcedure
ProcedureDLL$ p(b)
ProcedureReturn proc(b)
EndProcedure
Code: Select all
Debug proc(3)
Debug p(2)
Moderators: gnozal, ABBKlaus, lexvictory
Code: Select all
ProcedureDLL$ proc(a)
ProcedureReturn Str(a)
EndProcedure
ProcedureDLL$ p(b)
ProcedureReturn proc(b)
EndProcedure
Code: Select all
Debug proc(3)
Debug p(2)
You could do it like this :Vladi wrote:Thanx for your prompt answer. But what do you mean with a dummy function? I think any other function in between (inside the lib) will crash as well?
Code: Select all
; proc
Procedure$ proc_private(a) ; private
ProcedureReturn Str(a)
EndProcedure
ProcedureDLL$ proc(a) ; exported
ProcedureReturn proc_private(a)
EndProcedure
;
ProcedureDLL$ p(b)
ProcedureReturn proc_private(b) ; use private version in your library
EndProcedure
Code: Select all
Debug proc(2)
Debug p(2)
No, you only have to use a 'dummy' function if you call an exported string function inside your library.Vladi wrote:Don't you think it will make user libs unusable for anything other than elementary functions?