Skip to content

Commit

Permalink
comment out Paths\module (this is to be completely removed - probably)
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Nov 6, 2023
1 parent 7b67ed2 commit ba1c94d
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/library/Paths.nim
Original file line number Diff line number Diff line change
Expand Up @@ -241,31 +241,31 @@ proc defineSymbols*() =

push(newStringBlock(contents))

# TODO(Paths\module) Re-implement & change behavior of built-in function
# This should actually check if the aforementioned module/package is installed first.
# If not, it should look it up - and if available online - download it and install it.
# This obviously goes hand-in-hand with the development & implementation of Arturo's new package manager.
# labels: library, package manager, enhancement
builtin "module",
alias = unaliased,
op = opNop,
rule = PrefixPrecedence,
description = "get path for given module name",
args = {
"name" : {String,Literal}
},
attrs = NoAttrs,
returns = {String,Null},
example = """
print module 'html ; /usr/local/lib/arturo/html.art
..........
do module 'html ; (imports given module)
""":
#=======================================================
when defined(windows):
push(newString(HomeDir & ".arturo\\lib\\" & x.s & ".art"))
else:
push(newString(HomeDir & ".arturo/lib/" & x.s & ".art"))
# # TODO(Paths\module) Re-implement & change behavior of built-in function
# # This should actually check if the aforementioned module/package is installed first.
# # If not, it should look it up - and if available online - download it and install it.
# # This obviously goes hand-in-hand with the development & implementation of Arturo's new package manager.
# # labels: library, package manager, enhancement
# builtin "module",
# alias = unaliased,
# op = opNop,
# rule = PrefixPrecedence,
# description = "get path for given module name",
# args = {
# "name" : {String,Literal}
# },
# attrs = NoAttrs,
# returns = {String,Null},
# example = """
# print module 'html ; /usr/local/lib/arturo/html.art
# ..........
# do module 'html ; (imports given module)
# """:
# #=======================================================
# when defined(windows):
# push(newString(HomeDir & ".arturo\\lib\\" & x.s & ".art"))
# else:
# push(newString(HomeDir & ".arturo/lib/" & x.s & ".art"))

builtin "normalize",
alias = unaliased,
Expand Down

0 comments on commit ba1c94d

Please sign in to comment.