From ba1c94d34dfd07146ed5af8cc0514bb6393eba93 Mon Sep 17 00:00:00 2001 From: drkameleon Date: Mon, 6 Nov 2023 11:14:05 +0100 Subject: [PATCH] comment out Paths\module (this is to be completely removed - probably) --- src/library/Paths.nim | 50 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/library/Paths.nim b/src/library/Paths.nim index c21ed4cb96..44db8f8791 100644 --- a/src/library/Paths.nim +++ b/src/library/Paths.nim @@ -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,