About concept body proc syntax:
type
ConceptA = int # to avoid the bug
ConceptB = concept c
# both of these work:
# c.myProc(ConceptA) # standard
proc myProc(c: Obj, x: ConceptA) # declarative
Obj = object
proc myProc(obj: Obj, x: ConceptA) = discard
echo Obj is ConceptB
- Why isn't this concept working as I would expect? dawkot
- Re: Why isn't this concept working as I would expect? stisa
- Re: Why isn't this concept working as I would expect? dawkot
- Re: Why isn't this concept working as I would expe... stisa
- Re: Why isn't this concept working as I would ... Lando
