buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
815 stars 121 forks source link

Building with dmd 2.066: Deprication #18

Closed VlasovRoman closed 9 years ago

VlasovRoman commented 10 years ago

"alias object.clear" is depricated.

hdon commented 10 years ago

Which revision are you using? I don't see use of any object.clear. Assuming "object" is not meant literally, I took a few minutes to look for other invocations of a clear method. They appear to be invocations of the dlangui.core.types.Ref.clear() method, so I don't understand how they could be deprecated.

Apologies if I am not helping :|

hdon commented 10 years ago

Looking more closely I see there are several other clear() methods defined in dlangui, but it looks to me like all invocations are calling these, and not the clear() function described here.

VlasovRoman commented 10 years ago

object.clear () on which the compiler swears, is used for cleaning of dynamic and associative arrays. The project is compiled successfully if to replace array.clear () with destroy(array)

buggins commented 9 years ago

Fixed.