Print a value as the text MEOS writes it as - #23
Merged
estebanzimanyi merged 1 commit intoSep 2, 2026
Merged
Conversation
MEOS publishes text output per concrete type — `tfloat_out`, `stbox_out`,
`floatspan_out` and their kin are public while the generic dispatchers
`temporal_out`, `set_out`, `span_out` stay internal — so a class carrying an
`Out` of its own is exactly a class whose values MEOS writes. Those 30 classes
carry `ToString` over it, and the decimal digits it passes are the default the
catalog records for that C type's text encoding rather than a number chosen
here.
A temporal float prints `[25.5@2024-12-06 00:00:00+00, 27.5@2024-12-07
00:00:00+00]`, a float span set `{[8, 10], [11, 12]}`, an STBox
`STBOX X((1,1),(2,2))`. The text is the concrete class's, so an instant read
through `TFloat.In` prints as the `TFloatInst` the factory hands back. Four
tests read those, and the ExampleApp prints its values directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MEOS publishes text output per concrete type —
tfloat_out,stbox_out,floatspan_outand their kin are public while the generic dispatcherstemporal_out,set_out,span_outstay internal — so a class carrying anOutof its own is exactly a class whose values MEOS writes. Those 30 classescarry
ToStringover it, and the decimal digits it passes are the default thecatalog records for that C type's text encoding rather than a number chosen
here.
A temporal float prints
[25.5@2024-12-06 00:00:00+00, 27.5@2024-12-07 00:00:00+00], a float span set{[8, 10], [11, 12]}, an STBoxSTBOX X((1,1),(2,2)). The text is the concrete class's, so an instant readthrough
TFloat.Inprints as theTFloatInstthe factory hands back. Fourtests read those, and the ExampleApp prints its values directly.