Syntactic sugar for methods and properties
juancentro opened this issue · 1 comments
It would be nice to have [[
and $
call properties and methods respectively (as implemented in RDCOMClient
) on object instances. As it is just implementing S3 methods, and defining a S3 class for the .NETobject instance.
Did you already have this in mind? Do you already have an S3 class for a .NET object? I can create a pull request if that is so.
Thank you for your interest; I will have a look at your commits this week-end.
The roadmap is to use the package (R6)[https://github.com/wch/R6] to create R objects around the external pointers. I tried to use the reference classes in R a couple of years ago, but to fully map a .NET object hierarchy was not practical. I hold more hopes with R6. For information, trial work is at (this rClr branch)[https://github.com/jmp75/rClr/tree/ref-classes]