Changeset fbcb905 in Lumiera

Timestamp:
2026-11-03T03:11:58Z (10 days ago)
Author:
Ichthyostega <prg@…>
Branches:
dev/play
Children:
e8263d9
Parents:
b9800c8
git-author:
Ichthyostega <prg@…> (03/11/26 01:05:11)
git-committer:
Ichthyostega <prg@…> (03/11/26 03:11:58)
Message:

Parameters: critique of the type conversion API

the previous refactoring revealed a striking inconsistency related to the
type conversion API: we had two competing places where a conform() operation
happens. Related to this finding is the symptom, that a double-dispatch function
transferTo() had been implemented, tested, but was then actually not used.
The disentangling of implementation layers made it difficult to rely on the
alternative solution (which is to invoke the typed setter — which in this case
also amounts to a double-dispatch).

Today I combed through the various API layers and tried to distil the primary
usage paths, which then leads to a proposal to reshuffle the implementation
of the type converter function to be layered on top of TypedEntity.
This rearrangement would allow to integrate the invocation of the `Scale::conform()´
directly into the TypeHandler::conform() function — the location
where you'd actually expect such a value conditioning to be done.

(No files)

Note: See TracChangeset for help on using the changeset viewer.