LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Simple Generic "Thread-Safe Basic Type" #122

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Okay, I'm trying to reduce the code overhead involved in making independently-threadsafe basic types (String, Integer, Double etc. etc.)

A good way would be to have a simple Interfaced Class, specialized through Generics for various types.

That way we can define:

TThreadSafeString = class(TLKThreadSafeType<String>);

The above is a simple example... but this warrants investigation to reduce code overhead and simplify thread-safety for different basic types.

LaKraven commented 9 years ago

Introduced in 33dde53