Submitted By: Chris Rickard (chrisrickard)
...
One question I had regarding the interface is when to use fun vs. when to use 
get/set. For instance I noticed that SetHotspotActiveFore had the following 
signature:

set void SetHotspotActiveFore=2410(bool useSetting, colour fore)

whereas SetWhitespaceFore uses fun:

fun void SetWhitespaceFore=2084(bool useSetting, colour fore)

HotspotActiveFore is incorrect and should not be a property since it is not a top level value (sci.ReadOnly) or an indexed value (sci.StyleBold[SCE_P_IDENTIFIER]). Properties are a hint to the wrapper generator to generate properties in the target language when possible. For languages that do not support properties "set" and "get" can be treated as equivalent to "fun".

It would be more correct to change HotspotActiveFore and any similar APIs to "fun" although compatibility with previous versions may be a problem. If anyone is using HotspotActiveFore and would have trouble with this change, please tell us.

   Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to