Welcome, Guest. Please login or register.

Author Topic: How did datatypes work?  (Read 7186 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How did datatypes work?
« on: September 10, 2010, 07:50:47 PM »
The only problem I have with datatypes is that they aren't really bidirectional. You can generally only save in IFF.

In my minds eye, the ideal implementation would allow each datatype superclass (picture.datatype, sound.datatype etc) to provide a list of all currently known sub-classes that support encoding. You'd then be able to pick one and encode data for that datatype and write it out to disk in that format.
int p; // A