Sebpatu

It sounds like you should get on haxe IRC and discuss it with Simon
directly?

Not sure if it's helpful/relevant but back2dos has some macro based
signals that might be worth looking into.

https://github.com/back2dos/tinkerbell/tree/master/src/tink/reactive/signals/macros

Best

Justin



sebpatu:
>> @@ -240,13 +240,12 @@ class Compiler {
>>  	}
>>  
>>  	/**
>> -		Mark a class (or array of classes) with the metadata @:keep.
>> -
>> -		Note that this does not imply inclusion of the class(es): If a class is
>> -		neither referenced nor added via [Compiler.include], it will not be part
>> -		of the output even if @:keep was added.
>> +		Mark a class (or array of classes) or package or sub class of a module with the metadata @:keep.
>> +		Be carefull to not call Compiler.include before Compiler.keep!
>> +		Keep will also include the class by default. you can disable it with include parameter set to false.
>> +		To keep a sub class of a module, you need to set the module path plus the sub class like this: msignal.Signal.Signal0 (msignal.Signal being the module, and Signal0 the sub type). In that case, it will include the whole module which contains the sub type.
> 
> i think not. when i call addMetadata on msignal.Signal it does not add keep to Signal0, so i suppose it only adds it to Signal CLASS.
> and i have to call addMetata on msignal.Signal0 to get it work.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/HaxeFoundation/haxe/pull/2839/files#r11200698
>