mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
vars can be 'compileTime'; shallow introduced weird string aliasing bug
This commit is contained in:
@@ -411,9 +411,9 @@ var
|
||||
|
||||
proc newFileInfo(fullPath, projPath: string): TFileInfo =
|
||||
result.fullPath = fullPath
|
||||
shallow(result.fullPath)
|
||||
#shallow(result.fullPath)
|
||||
result.projPath = projPath
|
||||
shallow(result.projPath)
|
||||
#shallow(result.projPath)
|
||||
|
||||
proc fileInfoIdx*(filename: string): int32 =
|
||||
var
|
||||
|
||||
@@ -50,7 +50,7 @@ const
|
||||
wImportcpp, wImportobjc, wError}
|
||||
varPragmas* = {wImportc, wExportc, wVolatile, wRegister, wThreadVar, wNodecl,
|
||||
wMagic, wHeader, wDeprecated, wCompilerProc, wDynLib, wExtern,
|
||||
wImportcpp, wImportobjc, wError, wNoInit}
|
||||
wImportcpp, wImportobjc, wError, wNoInit, wCompileTime}
|
||||
constPragmas* = {wImportc, wExportc, wHeader, wDeprecated, wMagic, wNodecl,
|
||||
wExtern, wImportcpp, wImportobjc, wError}
|
||||
letPragmas* = varPragmas
|
||||
|
||||
Reference in New Issue
Block a user