Closed GoogleCodeExporter closed 9 years ago
Reducing allowed key types to strings is certainly too restricted. There are
lot of applications where integers are or enumerators used a key types. It
should also be possible to use structs, e.g. using a "struct { Int16 x, Int16 y
}" as a key for putting data items into a 2D space.
On the other hand, using maps as key types really seems far-fetched. But
without further rationale it seems quite arbitrary to disallow maps as key
types and allow everything else.
In any case, we can add a validation (allow only basic types as map key type)
into the external validator which checks D-Bus implementability (issue 71).
Further comments?
Original comment by klaus.birken@gmail.com
on 19 Feb 2014 at 11:31
The D-Bus external validator for Franca now issues the following warning if
non-primitive types are used as map-keys:
D-Bus compatibility: D-Bus dictionaries support only primitive key types.
This has been implemented with commit 42adfb3 on develop and will be part of
0.9.1. We will not implement further restrictions on the map key type in
standard Franca (see comment #1).
Original comment by klaus.birken@gmail.com
on 10 Nov 2014 at 12:42
Original comment by klaus.birken@gmail.com
on 19 Dec 2014 at 2:32
Original comment by klaus.birken@gmail.com
on 25 Jan 2015 at 11:16
Original issue reported on code.google.com by
manfred....@bmw.de
on 31 Oct 2013 at 3:36