GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Consider new default for Environment ctor / `new_env()` static function · Issue #215 · Rcpp11/Rcpp11

Consider new default for Environment ctor / new_env() static function #215

New issue
Copy link
New issue
Copy link
Open
Open
Consider new default for Environment ctor / new_env() static function#215
Copy link
Assignees
kevinushey

Description

@kevinushey
kevinushey
opened on Aug 26, 2014
Issue body actions

Currently, the default constructor for the Environment class is implemented as:

Environment_Impl() : data(R_GlobalEnv){}

IMO this is silly because we already have a static global_env() function -- preferably, this function should return an empty environment (perhaps with parent as the empty env, since that is a preferable default).

Of course, this would be a breaking change and so we may already be locked in -- so maybe a static function like the following would be a suitable alternative:

static Environment_Impl new_env() {
     // create a new environment with parent as empty env
}

static Environment_Impl new_env(SEXP parent) {
    // create environment with some parent
}

Activity

  1. romainfrancois commented on Sep 22, 2014

    @romainfrancois
    romainfrancois
    on Sep 22, 2014
    Contributor
    More actions

    Sure. Please do that.

  2. romainfrancois commented on Oct 4, 2014

    @romainfrancois
    romainfrancois
    on Oct 4, 2014
    Contributor
    More actions

    I don't mind the breaking change when it makes sense. This is not Rcpp.

  3. romainfrancois
    assigned
    kevinushey
    on Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kevinushey
    kevinushey

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.