MACRO-FREE TESTING WITH C++20
CPPCON 2020 / CPPCON 2020 / MACRO-FREE TESTING MACRO-FREE TESTING WITH C++20 WITH C++20 | | | | HTTPS://BOOST-EXT.GITHUB.IO/UT/CPPCON-2020 HTTPS://BOOST-EXT.GITHUB.IO/UT/CPPCON-2020 KRIS@JUSIAK SINGLE (2K LOC) WITH NO EXTERNAL DEPENDENCIES (2K LOC) WITH NO EXTERNAL DEPENDENCIES MACRO-FREE (✔ ) MACRO-FREE (✔ ) (*) LIMITATIONS MAY APPLY (*) LIMITATIONS MAY APPLY HTTPS://GITHUB.COM/BOOST-EXT/UT SINGLE (2K LOC) WITH NO EXTERNAL DEPENDENCIES (2K LOC) WITH NO EXTERNAL DEPENDENCIES MACRO-FREE (✔ ) MACRO-FREE (✔ ) FEATURES ( FEATURES ( , , , , , , , , , , , , , , ) (*) LIMITATIONS MAY0 码力 | 53 页 | 1.98 MB | 5 月前3Computer Programming with the Nim Programming Language
valid Nim syntax. In order to convert a string to an integer in Nim, you can use the parseInt procedure from the strutils module. Here is an example of how to use it: import strutils var s: string i # Output: 123 In this example, we import the strutils module, which provides the `parseInt` procedure for parsing integers from strings. Then, we define a string `s` with the value "123", and use a string from four numbers, separated by commas. Using the mapIt() procedure imported from the SEQUTILS module and the fmt() macro from the STRFORMAT module, we may write that in functional programming0 码力 | 865 页 | 7.45 MB | 1 年前3Computer Programming with the Nim Programming Language
valid Nim syntax. In order to convert a string to an integer in Nim, you can use the parseInt procedure from the strutils module. Here is an example of how to use it: import strutils var s: string i # Output: 123 In this example, we import the strutils module, which provides the `parseInt` procedure for parsing integers from strings. Then, we define a string `s` with the value "123", and use a string from four numbers, separated by commas. Using the mapIt() procedure imported from the SEQUTILS module and the fmt() macro from the STRFORMAT module, we may write that in functional programming0 码力 | 784 页 | 2.13 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.54 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.50 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.55 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Procedure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Types of macro parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 The genast() macro as a replacement for quote do: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.54 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100