) .Primitive("$") However, mg...">

Mget cannot get a primitive function like get

I can use getto get a primitive function, for example:

get('$') 
.Primitive("$")

However, mgetit failed:

mget('$')
Error: value for ‘$’ not found

Why? How to fix it?

+4
source share
1 answer

The default for is getused inherits = TRUE(I think, based on documents, for historical reasons), and the default for mgetis inherits = FALSE. Therefore use inherits = TRUEshould make it work like get.

( ) , , this. " " , $, , (package: base, ).

+5

Source: https://habr.com/ru/post/1678752/


All Articles