Re: [Rd] Could .Primitive("[") stop forcing R_Visible = TRUE?

2024-10-24 Thread Toby Hocking
Thanks for the detailed analysis and proposition Ivan. The patch you are proposing to base R is https://github.com/Rdatatable/data.table/issues/6566#issuecomment-2428912338 right? On Thu, Oct 24, 2024 at 8:48 AM Ivan Krylov via R-devel wrote: > > Hello, > > The "[" primitive operator currently ha

[Rd] Could .Primitive("[") stop forcing R_Visible = TRUE?

2024-10-24 Thread Ivan Krylov via R-devel
Hello, The "[" primitive operator currently has the 'eval' flag set to 0 in src/main/names.c. This means that the result of subsetting, whether R-native or implemented by a method, will never be invisible(). This is a very reasonable default: if the user goes as far as to subset a value, they pro