Mirror of
forum.nim-lang.org
index
(search is case sensitive; searches thread content, thread title and username)
13529 ::
[2025-11-30T16:40:24+01:00]
[PMunch] Help with macro error
13528 ::
[2025-11-30T15:39:30+01:00]
[Araq] A fun new experiment
13504 ::
[2025-11-13T22:46:04+01:00]
[Araq] Help on lineInfo needed
10846 ::
[2024-01-04T10:47:18+01:00]
[PMunch] how to get pragma of the field in macro?
10744 ::
[2023-12-07T17:15:29+01:00]
[Araq] Is it possible to encode constraints directly into a type, and enforce them at runtime?
10557 ::
[2023-10-19T20:48:33+02:00]
[Demos] Best way to architect a Nim dll/so that is used by other Nim dll/so/executables
10413 ::
[2023-08-16T10:45:54+02:00]
[Araq] SomeFloat in std/complex
10379 ::
[2023-08-05T13:16:06+02:00]
[hugogranstrom] How to get all fields of an object type `MyType` in a macro from a NimNode ident("MyType")
10300 ::
[2023-06-26T01:05:39+02:00]
[solo989] Why slight change to macro breaks it?
9823 ::
[2023-01-14T02:56:42+01:00]
[Araq] How do I fix this?
9519 ::
[2022-10-10T12:52:08+02:00]
[Araq] Term rewriting template question
9470 ::
[2022-09-16T03:40:11+02:00]
[DeletedUser] Custom macro inserts macro help
9191 ::
[2022-06-02T09:34:14+02:00]
[Araq] Nim conspicuously contradicts its efficient, simplicity philosophy
9185 ::
[2022-05-30T10:39:46+02:00]
[dxb] Are user defined pragmas permitted in a let section with Nim 1.6?
9133 ::
[2022-05-01T20:50:10+02:00]
[alapini] Why macros does not provice CommentStmt node in TypeDef ?
9027 ::
[2022-03-22T11:27:40+01:00]
[Araq] how to debug macros used with concept?
8970 ::
[2022-03-03T05:52:05+01:00]
[coffeepot] Can there be an else clause on a template (or macro)?
8772 ::
[2022-01-04T23:20:39+01:00]
[Nycto] Look up proc signature from an ident
8767 ::
[2022-01-03T21:48:33+01:00]
[geekrelief] `getTypeImpl` bug?
8752 ::
[2021-12-29T09:53:25+01:00]
[SolitudeSF] enum in macro
8658 ::
[2021-11-26T23:31:36+01:00]
[Araq] Macros: why and/or when to use them?
8623 ::
[2021-11-14T12:31:29+01:00]
[kobi] Yet another macro DSL
8617 ::
[2021-11-13T09:49:40+01:00]
[DeletedUser] generic type in generic type
8513 ::
[2021-10-19T16:10:20+02:00]
[solo989] VarArgs Broke on latest nim.
8492 ::
[2021-10-10T14:07:41+02:00]
[Araq] Trailing commas in "command" syntax?
8369 ::
[2021-08-27T07:32:46+02:00]
[Araq] Is there no way to pass a specific overload to a macro?
8357 ::
[2021-08-23T20:29:16+02:00]
[auxym] Nested macro expansion order
8220 ::
[2021-07-11T16:43:00+02:00]
[Stefan_Salewski] Inlining macro and (probable) problems with HiddenStdConv/HiddenCallConv
8043 ::
[2021-05-26T16:54:38+02:00]
[kaushalmodi] macros - iterate on sequence
7485 ::
[2021-02-07T20:47:40+01:00]
[mratsim] FieldOffset / Padding Pragma?
7477 ::
[2021-02-05T15:17:11+01:00]
[Araq] Generating Nim AST and executing nim code at runtime
7473 ::
[2021-02-05T00:08:46+01:00]
[filcuc] Traits or macros for inspecting proc/lambda/functor type
7381 ::
[2021-01-13T18:02:55+01:00]
[chaemon] memberProc macro
6824 ::
[2020-09-17T04:28:23+02:00]
[jyapayne] macro binary operator resolution
6218 ::
[2020-04-15T15:24:57+02:00]
[Sixte] how to get some (partial) type resolution within a macro ?
6016 ::
[2020-03-01T21:51:30+01:00]
[timothee] Some rant about nim
5950 ::
[2020-02-19T08:26:20+01:00]
[Araq] How to expand a single template
5886 ::
[2020-02-04T10:25:42+01:00]
[Varriount] How do I extract a particular block from an external module?
5864 ::
[2020-01-27T10:16:43+01:00]
[DeletedUser] Nim macro help
5819 ::
[2020-01-16T18:11:15+01:00]
[mratsim] how to evaluate a code block in a different context in a macro
5775 ::
[2020-01-06T23:11:51+01:00]
[Araq] "Returning" a proc from a template
5714 ::
[2019-12-19T10:59:52+01:00]
[solo989] Can I Pass Multiple Identifiers to a Single Typed Macro Body?
5679 ::
[2019-12-13T12:44:28+01:00]
[mratsim] Inspecting a proc’s type signature within a macro
5383 ::
[2019-10-22T16:16:27+02:00]
[Araq] Requesting examples of macros in Nim
5091 ::
[2019-08-13T01:12:34+02:00]
[Araq] Is there a way to check if binding one NimNode will lead to binding another unexpected NimNode?
5053 ::
[2019-07-28T00:15:08+02:00]
[solo989] Echo a NimNode
5033 ::
[2019-07-20T06:29:35+02:00]
[mratsim] get a type via a string?
5027 ::
[2019-07-18T14:33:35+02:00]
[kaushalmodi] Get AST for type in macro
4935 ::
[2019-06-14T19:50:02+02:00]
[jyapayne] Help getting this macro to work in a for loop
4746 ::
[2019-03-27T22:47:56+01:00]
[Araq] closure_methods: OOP purely based on closures
4559 ::
[2019-01-16T01:14:29+01:00]
[Araq] Is it possible get the export flag of a type symbol
4441 ::
[2018-12-07T13:00:51+01:00]
[def] How do you pass code blocks to when compiles?
4332 ::
[2018-10-23T19:42:30+02:00]
[LeuGim] Help needed to learn macro
4128 ::
[2018-08-14T00:28:43+02:00]
[Araq] A critique of Nim
4068 ::
[2018-07-21T19:36:28+02:00]
[Araq] Globally-invoked macros
3928 ::
[2018-06-15T22:26:54+02:00]
[planhths] getting the fields of an object type in a macro
3909 ::
[2018-06-11T22:37:53+02:00]
[cdome] Hint pragma in NimScript
3887 ::
[2018-06-05T01:19:24+02:00]
[Araq] Term rewriting template for the proc definitions
3776 ::
[2018-04-23T13:25:52+02:00]
[Araq] What is the typedesc inside the compiler?
3757 ::
[2018-04-15T09:45:09+02:00]
[Araq] How to call a macro from another macro
3701 ::
[2018-03-28T23:25:15+02:00]
[Araq] [RESOLVED] a proc returning void creates 1 arg, not 0: breaking generic code
3688 ::
[2018-03-26T23:05:40+02:00]
[Araq] Odd bug with ast and strutils.
3539 ::
[2018-02-11T07:47:38+01:00]
[Udiknedormin] Inspecting Object Field Pragmas
3334 ::
[2017-11-15T14:11:10+01:00]
[Udiknedormin] CommentStmtNode --- sometimes visible, sometimes not
3303 ::
[2017-11-04T03:20:03+01:00]
[Araq] three or more parameters to a pragma macro
3269 ::
[2017-10-22T06:12:00+02:00]
[Araq] testing private methods in external module
3199 ::
[2017-09-25T19:14:38+02:00]
[Araq] Code substitution with templates
3189 ::
[2017-09-22T23:43:25+02:00]
[Udiknedormin] Cannot generate VM code for macro --- but yet it does?
3184 ::
[2017-09-20T19:53:55+02:00]
[Udiknedormin] Get a constant passed to a macro call
3175 ::
[2017-09-18T00:14:29+02:00]
[Arrrrrrrrr] Error: type mismatch: got (OptParser)
2923 ::
[2017-04-21T16:27:08+02:00]
[Krux02] Checking in macro if proc has side effects or not
2902 ::
[2017-04-05T18:44:14+02:00]
[Araq] Base type for all procedure pointers
2856 ::
[2017-03-14T20:18:24+01:00]
[Arrrrrrrrr] Chaining inline iterators
2848 ::
[2017-03-12T18:04:26+01:00]
[Libman] Reusing parts of the AST in macros
2810 ::
[2017-02-21T12:20:54+01:00]
[vega] Can't get generic parameters of ref object in macro
2780 ::
[2017-02-03T12:09:30+01:00]
[Krux02] Creating types using macros
2740 ::
[2017-01-20T20:00:42+01:00]
[Araq] Macros with head and body
2591 ::
[2016-10-24T05:58:19+02:00]
[Araq] macro problem
2483 ::
[2016-08-21T22:03:16+02:00]
[def] naive implemnatation of KNN
2480 ::
[2016-08-21T01:52:11+02:00]
[mora] Getting type of generic instantiation in pragma macro
2445 ::
[2016-08-07T06:16:00+02:00]
[jangko] How to obtain parameters and their types of akProc?
2293 ::
[2016-06-01T07:47:11+02:00]
[jyapayne] Call macro from macro problem
2211 ::
[2016-04-15T12:07:31+02:00]
[Krux02] getType of generic object
2078 ::
[2016-02-29T00:03:22+01:00]
[LeuGim] Error: value of type 'proc (){.gcsafe, locks: 0.}' has to be discarded
2043 ::
[2016-02-13T20:38:49+01:00]
[filwit] Typed Varargs?
2022 ::
[2016-02-07T08:44:18+01:00]
[Araq] how to examine template result?
2017 ::
[2016-02-06T05:35:31+01:00]
[Jehan] Dynamically get object fields
1910 ::
[2015-12-30T18:10:54+01:00]
[jdm] How do I get the name of a type in a macro?
1889 ::
[2015-12-23T14:16:23+01:00]
[Krux02] How do I get the value of a constant symbol within a macro?
1884 ::
[2015-12-20T02:51:38+01:00]
[filwit] How do I get the NimNode of a Type
1808 ::
[2015-11-17T05:08:45+01:00]
[Araq] The value of nnkCommentStmt node
1696 ::
[2015-10-05T13:16:16+02:00]
[vega] How to get the declared type of the field in macro?
1521 ::
[2015-08-12T09:12:28+02:00]
[Araq] About Nim
1512 ::
[2015-08-10T17:13:10+02:00]
[Jehan] Issue with macro code generation
1479 ::
[2015-07-29T14:50:34+02:00]
[Jehan] How to get access to object's type info at compile time
1463 ::
[2015-07-20T23:24:20+02:00]
[Araq] Setting visibility in macros
1452 ::
[2015-07-16T11:07:41+02:00]
[Araq] Evaluate macro stmt at compile time
1411 ::
[2015-07-06T07:53:40+02:00]
[reactormonk] [SOLVED] Macros for enums
1361 ::
[2015-06-24T18:17:53+02:00]
[Jehan] SOLVED: The result of `repr` is not expected.
1347 ::
[2015-06-20T21:30:12+02:00]
[mora] Apply a macro with pragma
1257 ::
[2015-05-25T07:09:25+02:00]
[Jehan] Intermediate code for templates
1219 ::
[2015-05-13T13:09:25+02:00]
[Araq] Macros: How to parse a string and get the type of the expression?
1141 ::
[2015-04-18T15:15:02+02:00]
[def] Basic AST
1105 ::
[2015-04-06T21:27:17+02:00]
[def] Problem with treeRepr
894 ::
[2015-02-19T10:56:55+01:00]
[Araq] AST differs when pragma parameter is `stmt` vs `expr`
887 ::
[2015-02-18T01:53:51+01:00]
[Jehan] Suggestion: Add a special case `..<` operator, equivalent to `.. <`
391 ::
[2014-03-08T19:14:59+01:00]
[Araq] AST representation of data structures
375 ::
[2014-02-20T19:19:21+01:00]
[zahary] Metaprogramming question: naming generated types
262 ::
[2013-10-04T11:43:55+02:00]
[Araq] Macros and flow control
29 ::
[2012-05-30T11:20:52+02:00]
[Araq] String to AST