d-widget-toolkit / org.eclipse.swt.win32.win32.x86

5 stars 6 forks source link

Fixes for dmd 2.063 #14

Closed kntroh closed 11 years ago

kntroh commented 11 years ago

Fixes for dmd 2.063 (beta).

I fixed use of shared and static keyword.

jacob-carlborg commented 11 years ago

I see that you have added static in a couple of places, which I understand why. But why is shared removed?

kntroh commented 11 years ago

It occurs a compile error from dmd 2.063 beta.

I think, shared attribute is assurance to data. If it is marked to a class method, it mean a assurance to an instance probably. So it can't marked to a static method.

I don't know well specification of shared, my explanation is might be wrong. I saw specification of D, but it explanation is nothing.

http://dlang.org/attribute.html#shared

jacob-carlborg commented 11 years ago

Right, that make sense.