About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 158
  • Price: Free |
  • Operating system: Mac OS X
  • Publisher: Rob Rix (2 other programs)
See full specifications

mac default iconPolymorph For Mac Publisher's description

A library for creating polymorphic types in C...

A library for creating polymorphic types in C.

Polymorphic instances keep a reference to a type structure which itself has pointers to the functions implementing that type’s methods. This extra indirection (from the instance to the type) was chosen to keep instance sizes down, as Polymorph is intended to support model types.

The implementation takes advantage of the preprocessor to make implementing new polymorphic types more convenient.

Memory is managed by libauto’s garbage collector, if you’re using it, falling back to reference counting.

The unit tests may be instructive if you’d like to see how it looks in practice, as they demonstrate how to declare a new type, and then create and use instances of it. You’ll probably also want to read everything in Documentation.

Currently the universal polymorphism is pretty minimal:

1. Reference counting (ignored under garbage collection).
2. Deallocation (ignored under garbage collection).
3. Getting an object’s type.
4. Equality tests.

Further polymorphic methods such as hashes and descriptions (as in CoreFoundation) are certainly possible, and will be added when needed. Feel free to fork if you need them more urgently than I do!

System Requirements:

No special requirements.
Program Release Status: New Release
Program Install Support: Install and Uninstall

Polymorph For Mac Tags:

Click on a tag to find related softwares

Is Polymorph For Mac your software?

Manage your software

Most Popular

mac default icon twttr.media.types.instagram For Mac 1.4
Permission is hereby granted, free of charge
mac default icon Fiddler For Mac 1.0
Objective-C libraries for calculating sunrise & sunset times
mac default icon Wassup For Mac 2.5
Let's you know what's up with your Java environment.
mac default icon libdvdcss for Mac 1.2.11
Free and open source library that will help you access DVDs
mac default icon CodeRunner For Mac 1.3
Edit and run code in 10 different programming languages with CodeRunner...

Related Category

» Other (625)
» Tools (3122)