Patterns: preserve the value of Literal
This commit is contained in:
parent
ac2576f005
commit
843252ad61
|
@ -324,7 +324,7 @@ proc fromPreserveHook*[T, E](lit: var Literal[T]; pr: Preserve[E]): bool =
|
||||||
pat.fromPreserve(pr) and lit.value.fromPreserve(depattern pat)
|
pat.fromPreserve(pr) and lit.value.fromPreserve(depattern pat)
|
||||||
|
|
||||||
proc toPreserveHook*[T](lit: Literal[T]; E: typedesc): Preserve[E] =
|
proc toPreserveHook*[T](lit: Literal[T]; E: typedesc): Preserve[E] =
|
||||||
lit.grab.toPreserve(E)
|
lit.value.grab.toPreserve(E)
|
||||||
|
|
||||||
type
|
type
|
||||||
Path* = seq[Value]
|
Path* = seq[Value]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "20231021"
|
version = "20231026"
|
||||||
author = "Emery Hemingway"
|
author = "Emery Hemingway"
|
||||||
description = "Syndicated actors for conversational concurrency"
|
description = "Syndicated actors for conversational concurrency"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
|
Loading…
Reference in New Issue