fixes #21592; create type bound operations for calls in the method dispatcher for ORC
import std/options
type Event* = object
code*: string
type App* = ref object of RootObj
id*: string
method process*(self: App): Option[Event] {.base.} =
raise Exception.new_exception("not impl")
It now works.
compiler support for object construction shorthand
disable BareExcept warning in panics:on mode
try:
raise newException(CatchableError, "catched")
except:
discard
With --panics:on, the compiler does not give BareExcept warnings.
fixes #20846; fixes #21427; warn on overloaded =copy with refc
implement =dup hook eliminating wasMoved and =copy pairs
proc `=dup`(s: ref): ref =
dest[] = src
if src != nil: nimIncRef src
The =dup hook is for optimization. The compiler sometimes generates =wasMoved(x); =copy(x, y). But =wasMoved is unnecessary in this case since it is going to be rewritten for sure. It should be replaced by x = =dup(y) instead.
https://forum.nim-lang.org/t/9908 (2/19)
https://forum.nim-lang.org/t/9940 (2/26)
https://forum.nim-lang.org/t/9970 (3/5)
https://forum.nim-lang.org/t/9989 (3/12)
https://forum.nim-lang.org/t/10024 (3/19)
https://forum.nim-lang.org/t/10040 (3/26)
Following The Roadmap 2023 for community building , you could join us in the matrix space where we discuss how to build a community. We appreciate doable suggestions and helps, such as improving the workflow, implementing the roadmap, suggesting doable tasks, reviewing code from contributors. United we stand. We shall work together to make the community thrive.
Many thanks to @Yepoleb, @lenis0012, @pietroppeter, @Clonkk, @mode80, @Phil, @CxPlanner, @shirleyquirk, @elcritch, @geotre, @thinkwelltwd, @xrfez, @enthus1ast, @piertoni, @Dnanilem, @gemath for sponsoring me on GitHub.
Thank you for your update as always!
I am excited about "compiler support for object construction shorthand".
Are there docs on how to use =dup correctly?