Shared Classes

S at S.com S at S.com
Sat Nov 9 08:55:19 PST 2013


 It seems to me that the way things are currently implemented that a 
class itself has to be specifically made to handle being shared.   That 
is to say, I cannot import some general library and do (new shared 
LibraryType()) if the class doesn't support all the proper shared 
methods.  In order for the class to properly implement the shared 
methods, it basically needs to be defined as such:

shared class Foo
{
	....
}

But now I still need to do shared Foo everywhere I use that class.  
This seems a bit off to me.


R/
Shammah



More information about the Digitalmars-d mailing list