Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b0baa612c2a8a03b2ba800505b4d876200c9eab
Ticket: 2994165fffffffffffffffffffffffffffffffff
Signature of Tcl_FSGetNativePath and TclpDeleteFile
User & Date: dgp on 2010-08-16 21:49:02
Changes

  1. closedate changed to: "2010-08-16T14:49:02"
  2. closer changed to: "dgp"
  3. icomment:
    
    
    allow_comments - 1
    
    
    The change you've made with this patch
    looks good to me.
    
    It takes some effort to see that because
    the change is near a lot of confusion and
    messiness in the Tcl_Filesystem.  We have
    two ways to get a driver-specific rep for a
    filesystem path:
    
      Tcl_FSGetNativePath()
      Tcl_FSGetInternalRep()
    
    and we have one way to set
    
      Tcl_FSNewNativePath()
    
    By the names, you would think that
    GetNativePath and NewNativePath were
    a corresponding pair, but in fact it is
    NewNativePath and GetInterpRep that
    go together and offer the way to interact
    with the "native" or "internal" rep used by
    any Tcl_Filesystem at all.
    
    Tcl_FSGetNativePath is the oddball, specialized
    convenience interface useful only for the one
    Tcl_Filesystem declared to be "native" in the
    current app.  Since it's out on its own, this patch
    is a good change, and one apparently suggested
    in the docs for some time.
    
    If GetNativePath actually were a pair with NewNativePath,
    I would insist they agree and operated on ClientData.
    It takes some effort to see that is not the case.
    
    Anyhow, I think this patch is good for Tcl 8.6.  Thanks!
    
    
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. resolution changed to: "Accepted"
  7. status changed to: "Closed"
  8. username: "dgp"