Open
Description
Having a Predeclared class with a factory method, or with members that are intended to be used as Shared/Static members, it would be useful to annotate those members as being '@Shared
.
Once RD knows which members are Shared
, it could:
- Offer an inspection for usages of instance members on Predeclared classes
- Only show
Shared
members in Predeclared usage Intellisense - Identify
Shared
members in a custom Object Browser
@retailcoder: that would make UserForm1.Show much less friendly all of a sudden
'Class Foo
Private counter As Long
Public Sub Increment
counter = counter + 1
End Sub
'@Shared
Public Function Create() As Foo
'Return a new Foo
Set Create = New Foo
End Function