Mercurial > projects > orange
diff orange/serialization/Serializer.d @ 40:02dbd18b7fe9
Moved all tests into its own modules.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 06 Aug 2011 13:27:21 +0200 |
parents | 301476d40518 |
children | 8b9409423740 |
line wrap: on
line diff
--- a/orange/serialization/Serializer.d Thu Aug 04 21:29:56 2011 +0200 +++ b/orange/serialization/Serializer.d Sat Aug 06 13:27:21 2011 +0200 @@ -253,7 +253,7 @@ else { - static if (isSerializable!(T, Serializer)) + static if (isSerializable!(T)) value.toData(this, key); else @@ -390,7 +390,7 @@ T deserialize (T) (string key) { if (!hasBegunDeserializing) - throw new SerializationException("Cannot deserialize without any data, this method should only be called after deserialization has begun", __FILE__, __LINE__); + throw new SerializationException("Cannot deserialize without any data, this method should only be called after deserialization has begun.", __FILE__, __LINE__); return deserialize!(T)(archive.untypedData, key); } @@ -498,7 +498,7 @@ else { - static if (isSerializable!(T, Serializer)) + static if (isSerializable!(T)) value.fromData(this, key); else @@ -637,7 +637,7 @@ wrapper(value, this, key); } - else static if (isSerializable!(T, Serializer)) + else static if (isSerializable!(T)) value.fromData(this, key); else