Context.signature irregularity.

47 weergaven
Naar het eerste ongelezen bericht

Laurence Taylor

ongelezen,
1 jul 2016, 05:45:2401-07-2016
aan Haxe
I'm using `Context.signature` to identify anonymous types in the macro context. `signature` produces a different result for a value of typ

Laurence Taylor

ongelezen,
1 jul 2016, 05:48:4101-07-2016
aan Haxe
(sorry)
typedef `AnonType` depending on where the function is called, is that expected behaviour? To clarify, I was calling `signature` in a package 'stx.macro' in a static function, which gives one result, and then as an abstract member method in `stx.macro.clone`, which produced another.

It's kind of confusing.

regards,
Laurence

Nicolas Cannasse

ongelezen,
18 jul 2016, 08:09:5518-07-2016
aan haxe...@googlegroups.com
Le 01/07/2016 à 11:48, Laurence Taylor a écrit :
> (sorry)
> typedef `AnonType` depending on where the function is called, is that
> expected behaviour? To clarify, I was calling `signature` in a package
> 'stx.macro' in a static function, which gives one result, and then as an
> abstract member method in `stx.macro.clone`, which produced another.
>
> It's kind of confusing.

"Type" might have references that will trigger different values, try on
a ComplexType instead.

Best,
Nicolas

Laurence Taylor

ongelezen,
18 jul 2016, 14:58:1718-07-2016
aan haxe...@googlegroups.com

OK, thanks

Loz

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--- You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten