Norbert,

On 26 Sep 2013, at 11:32, Norbert Hartl <[email protected]> wrote:

> How is inheritance supposed to work in NeoJSON? I only figured it out by 
> doing that manually:
> 
> neoJsonMapping: aMapper
>       super neoJsonMapping: aMapper.
>       (aMapper mappingFor: self) 
>                       mapInstVar: #longitude;
>                       mapInstVar: #latitude.
> 
> Is there a better way to do?
> 
> Norbert

What you figured out yourself is the only inheritance that is available.

The thing is, schema names (which can be plain Symbols or Class objects) are 
meant to be used for things like #ArrayOfPoints, #DictionaryWithUserValues 
which tell something about subtypes. I hurts to think of an inheritance for 
that ;-)

Sven

Reply via email to