Take an untyped pointer as a pointer, and call what answers nothing - #34
Merged
estebanzimanyi merged 1 commit intoSep 3, 2026
Conversation
An UNTYPED pointer stays untyped. MEOS states nothing about what a `void *` points at — `rtree_insert` takes whichever key the tree is created for — so the layer states nothing either and the caller hands over the pointer of the value it means, the `Ptr` every wrapped instance publishes. GoMEOS answers the same shape with `unsafe.Pointer`. A STATIC METHOD THAT ANSWERS NOTHING IS STILL A METHOD. "Neither a receiver nor a value to return" is true of such a signature and false of what it does: `Pcschema.Register` puts a schema in the process-global cache, `Pcschema.Clear` empties it, and the two kNN cursors are closed the same way. A method is called for what it does as much as for what it answers. 11 methods reach the object layer between them — `RTree.Insert`, `.Search`, `.Load` and their SP-tree twins, `MeosArray.Add` and `.Get`, `Pcschema.Register`, `.RegisterXml` and `.Clear`, and the two cursor closes — 1335 methods against 1324, 25 deferred against 36. Two tests call both kinds: an R-tree over float spans takes two of them as pointers and answers 1 for the one that overlaps, and the schema cache is cleared and then says so — by raising, which is how MEOS reports a pcid it holds no schema for.
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.
An UNTYPED pointer stays untyped. MEOS states nothing about what a
void *points at —
rtree_inserttakes whichever key the tree is created for — so thelayer states nothing either and the caller hands over the pointer of the value
it means, the
Ptrevery wrapped instance publishes. GoMEOS answers the sameshape with
unsafe.Pointer.A STATIC METHOD THAT ANSWERS NOTHING IS STILL A METHOD. "Neither a receiver nor
a value to return" is true of such a signature and false of what it does:
Pcschema.Registerputs a schema in the process-global cache,Pcschema.Clearempties it, and the two kNN cursors are closed the same way. A method is called
for what it does as much as for what it answers.
11 methods reach the object layer between them —
RTree.Insert,.Search,.Loadand their SP-tree twins,MeosArray.Addand.Get,Pcschema.Register,.RegisterXmland.Clear, and the two cursor closes — 1335 methods against1324, 25 deferred against 36.
Two tests call both kinds: an R-tree over float spans takes two of them as
pointers and answers 1 for the one that overlaps, and the schema cache is
cleared and then says so — by raising, which is how MEOS reports a pcid it holds
no schema for.