I tried making it as functional as I could given the stateful nature of wayland protocols :)
Add Ocaml implementation #15
ricmaps/tinyrwm:add-ocaml into main
032aed4085
021c47fd33
021c47fd33
ee2d5ef342
Very cool! I guess I'll need to learn a bit of OCaml :)
Would you please add CI steps to ensure that fetching dependencies and building works? Could also test that the .ocamlformat is enforced in the CI.
02c2d09e8d
e534558f7f
e534558f7f
df32b19ecd
sorry for all the force pushing. the alpine ocaml package is way too old for the project
@ -0,0 +355,4 @@
if contains_edge Edges.top edges then sub start_height dy else start_height
in
let height = if contains_edge Edges.bottom edges then add height dy else height in
River_window.propose_dimensions window.proxy ~width ~height
will this allow a user to propose window dimensions of zero or less? (for example, when attempting to make an infinitesimally small window?)
all of the other implementations are (effectively) taking a max of the width/height and 1 here, and although I don't see that being done here it could be that I am naive to some Ocaml magic. :)
haha yes it's an ocaml spell named "oopsie". thanks for pointing it out! i mostly looked at the rust implementation while writing this since rust is the closest language to ocaml in the repo, so that's why
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?