[fpc-devel] Proposal: Supporting initial references for weakexternal
jepjoh2 at es.aau.dk
Wed Jan 12 11:45:17 CET 2011
Den 12-01-2011 11:25, michael.vancanneyt at wisa.be skrev:
> That's not correct. You must write all the default handlers.
> For each procedure signature you must write a handler. So you must
> write more code.
> And if you want a correct error message at runtime, then you must
> write a handler per weakexternal.
> I am not against this feature, but this will definitely result in more
Only if you choose to use weakexternal with a set default symbol for
dynamic linking. I personally don't think that's a good idea in many cases.
This change doesn't require you to to set the default symbol, and if you
don't it'll work like a normal weakexternal reference(eg. be nil and not
warn you if it's undefined)
More information about the fpc-devel