work in progress: new implementation for 'a[^1]'
This commit is contained in:
parent
c0433b0b6c
commit
d52a1061b3
13 changed files with 96 additions and 89 deletions
|
|
@ -154,7 +154,7 @@ proc includeHeader*(this: BModule; header: string) =
|
|||
|
||||
proc s*(p: BProc, s: TCProcSection): var Rope {.inline.} =
|
||||
# section in the current block
|
||||
result = p.blocks[^1].sections[s]
|
||||
result = p.blocks[p.blocks.len-1].sections[s]
|
||||
|
||||
proc procSec*(p: BProc, s: TCProcSection): var Rope {.inline.} =
|
||||
# top level proc sections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue