{"id":16539900,"url":"https://github.com/prince781/oop-in-c","last_synced_at":"2026-06-05T08:31:54.245Z","repository":{"id":33088488,"uuid":"36725912","full_name":"Prince781/oop-in-c","owner":"Prince781","description":"Object-oriented C","archived":false,"fork":false,"pushed_at":"2020-11-28T15:17:14.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T07:29:28.638Z","etag":null,"topics":["c","dynamic-typing","oop"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"RyanZim/awesome-npm-scripts","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prince781.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-02T10:32:22.000Z","updated_at":"2020-11-28T15:17:16.000Z","dependencies_parsed_at":"2022-09-03T21:20:26.482Z","dependency_job_id":null,"html_url":"https://github.com/Prince781/oop-in-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prince781%2Foop-in-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prince781%2Foop-in-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prince781%2Foop-in-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prince781%2Foop-in-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prince781","download_url":"https://codeload.github.com/Prince781/oop-in-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241773935,"owners_count":20018193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","dynamic-typing","oop"],"created_at":"2024-10-11T18:51:04.399Z","updated_at":"2025-11-29T08:04:30.507Z","avatar_url":"https://github.com/Prince781.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oop-in-c\nObject-oriented C\n\n## Why?\nI'm doing this to learn and because I'm curious. I'll probably get bored with things eventually.\n\n## Things planned\n- [X] basic object system (single inheritance)\n- [X] non-instantiable types\n- [ ] interfaces/abstract classes\n- [ ] generic values\n- [ ] parameter specs\n- [ ] generic classes? (ex: `HashMap\u003cK,V\u003e`)\n- [ ] more stuff (closures?)\n\n## Further comments\nIt would be nice to have some way of storing type parameters for classes. \nThis is something that I don't think GObject does (it does have type parameters for properties, though).\nThat way, a HashMap would throw exceptions if given the wrong type.\nIt would also be nice to do this for certain non-instantiable types (\"primitives\") without boxing.\n\n## Things to look into\n1. [dynamic type system](https://en.wikipedia.org/wiki/Type_system#Static_and_dynamic_type_checking_in_practice)\n2. [Java reflection with generics](http://stackoverflow.com/questions/3609799/how-to-get-type-parameter-values-using-java-reflection)\n3. [GParamSpec](https://developer.gnome.org/gobject/stable/gobject-GParamSpec.html)\n4. [C11's \\_Generic](http://abissell.com/2014/01/16/c11s-_generic-keyword-macro-applications-and-performance-impacts/)\n5. [Object Oriented Programming with ANSI C](https://www.cs.rit.edu/~ats/books/ooc.pdf)\n6. [GObject Memory Management](https://developer.gnome.org/gobject/stable/gobject-memory.html)\n7. [libffi](https://github.com/atgreen/libffi)\n8. [Java super type tokens](http://gafter.blogspot.com/2006/12/super-type-tokens.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprince781%2Foop-in-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprince781%2Foop-in-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprince781%2Foop-in-c/lists"}