Website updates (https://rconsortium.github.io/OOP-WG/): refreshed readme, minutes as articles. Working on documentation overhaul in https://github.com/RConsortium/S7/pull/187.
new_generic()
now requires dispatch_args
.
This means that new_generic()
will typically be called without names:
new_generic("foo", "x")
new_generic("foo", "x", function(x, y) call_method())
New class_any
(could already define methods for S7_object
) and class_missing
sentinels.
When creating an object, unspecified properties are initialized with their default value (#67).
To achieve this, the constructor arguments default to class_missing
, since NULL
would prevent a default value of NULL
, and missing()
requires too many gymnastics.
new_class("foo", properties = list(x = integer, y = double))@constructor
https://github.com/RConsortium/S7/blob/main/R/class.R#L209-L212
See other minor changes in\ https://github.com/RConsortium/S7/blob/main/NEWS.md#feb-2022
method_call()
? https://github.com/RConsortium/S7/issues/200 --- S7_dispatch()
sounds good.S7_inherits()
for now; will eventually just be part of inherits. Propose generic extension mechanism for inherits.class_
sounds good.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.