Skip to content

Commit 367133b

Browse files
committed
force 'finalize' method to be materialized on Modules
1 parent 8a44ae1 commit 367133b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2022-09-23 Kevin Ushey <[email protected]>
2+
3+
* R/Module.R: Force 'finalize' method to be materialized
4+
15
2022-09-20 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): Roll minor version

R/Module.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ new_dummyObject <- function(...) # #nocov
131131

132132
# class method for $initialize
133133
cpp_object_initializer <- function(.self, .refClassDef, ..., .object_pointer){
134+
# force finalize method to be materialized
135+
invisible(.self$finalize)
134136
selfEnv <- as.environment(.self)
135137
## generate the C++-side object and store its pointer, etc.
136138
## access the private fields in the fieldPrototypes env.

0 commit comments

Comments
 (0)