Skip to content

Commit

Permalink
Merge pull request #9 from Keno/kf/noimplicitglobal
Browse files Browse the repository at this point in the history
Do not rely on implicitly created globals
  • Loading branch information
kongdd authored Oct 9, 2024
2 parents d5db7fc + 855287b commit 8f99ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data.table.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DataFrames.ncol(x::AbstractArray) = size(x, 2)

## module: data ================================================================
module data
global table, frame
end
data.table = DataFrame
data.frame = DataFrame
Expand All @@ -31,6 +32,7 @@ module as
function matrix end

module data
global table
function frame end
end
end
Expand Down Expand Up @@ -62,7 +64,7 @@ function as.data.frame(x::AbstractMatrix, names)
DataFrame(x, :auto)
end
end


as.data.table = as.data.frame

Expand Down

0 comments on commit 8f99ca9

Please sign in to comment.