Search results

Jump to: navigation, search

Page title matches

  • ...big metaprogramming capabilities, so mapping template chain onto compiled code might cause some trouble
    528 bytes (85 words) - 17:10, 25 November 2012
  • 24 bytes (2 words) - 10:20, 10 December 2012
  • Often, during development, you may wish to comment out certain blocks of code for testing or debugging purposes. ...(before C99), this is accomplished by inserting a block comment around the code to be disabled:
    4 KB (541 words) - 09:44, 31 May 2017
  • == D source code tools == | about = Tool for analyzing D source code.
    541 bytes (59 words) - 18:40, 6 June 2018
  • Although D is designed to make it easy to port code between 32 and 64 bit modes, being a systems programming language, dependen Not all code can be made portable between 32 and 64 bits, and must be versioned. The fol
    3 KB (472 words) - 10:14, 14 November 2014
  • Timing a section of code is as simple as snipping out the three lines of code: { ... code to be profiled ... }
    4 KB (649 words) - 10:15, 14 November 2014
  • 75 bytes (14 words) - 23:54, 1 February 2015

Page text matches

  • ...For these reasons D makes for a good language choice for both performance code and application development. [https://run.dlang.io ▶ Run code]
    7 KB (951 words) - 06:30, 4 September 2023
  • latest technologies in building reliable, maintainable, portable, high-level code. D has moved well ahead of <br/> high-level compositions of templated code and optimizes it down to code that is virtually indistinguishable <br/>
    11 KB (1,667 words) - 03:36, 27 November 2018
  • Code examples and explanations from the author's years of using D covering a var “Templates are a central feature of D, giving you powerful compile-time code
    12 KB (1,738 words) - 22:41, 3 April 2022
  • .../www.youtube.com/watch?v=OLFBal4Qo_k Quantum Break: AAA Gaming With Some D Code] || [http://dconf.org/2016/talks/watson.pptx Yes] || [http://dconf.org/2016 .../www.youtube.com/watch?v=nSXRQfQcZb4 Object-Relational Mapper] || [https://code.dawg.eu/talks/2016-05-06-orm_dconf/#1 Yes] || [http://dconf.org/2016/ DConf
    34 KB (4,757 words) - 16:47, 21 December 2023
  • ...ciency, and Flexibility Too - Metaprogramming Techniques For No-Compromise Code | name = Programming Windows code samples translated to D2
    11 KB (1,194 words) - 04:29, 14 September 2022
  • ...e.visualstudio.com/items?itemName=webfreak.code-d Code-d for Visual Studio Code] ...ting, debugging (gdb/mago-mi), etc... Full list [https://github.com/Pure-D/code-d/wiki here]
    5 KB (679 words) - 17:13, 18 February 2024
  • !Syntax highlighting || Auto-<wbr>completion || Code navigation || Code formatting || Building || Linting || Debugging || Profiling || Coverage Ana |rowspan=4|[https://code.visualstudio.com/ Visual Studio Code]
    7 KB (764 words) - 08:13, 26 November 2023
  • | LDC-specific code: 3-clause BSD |'''Building D code as shared library'''
    8 KB (1,185 words) - 01:37, 18 May 2021
  • * [https://github.com/dlang Source code (GitHub)]
    837 bytes (108 words) - 17:06, 25 January 2018
  • * [https://github.com/D-Programming-GDC/GDC Source code (GitHub)] ...is means that a D frontend that can make use of the GCC middle and backend code will gain many advantages that would require years of development to match
    9 KB (1,401 words) - 12:47, 13 December 2023
  • ...est D2 version and relies on the [http://llvm.org LLVM Core libraries] for code generation. LDC is fully Open Source; the parts of the code not taken/adapted from other projects are BSD-licensed (see the [https://gi
    8 KB (1,269 words) - 20:51, 11 May 2024
  • | about = DMD fork which outputs C code instead of object files.
    1 KB (149 words) - 07:54, 8 June 2018
  • == <code>volatile</code> == ...ost/mailman.2445.1382596627.1719.digitalmars-d@puremagic.com <code>shared</code> considered a volatile type in GDC], [http://forum.dlang.org/post/l4ecan$6s
    9 KB (1,251 words) - 21:39, 20 May 2015
  • | DustMite || DustMite, is a D source code minimization tool. It's helpful in finding toolchain problems. || Windows/
    2 KB (277 words) - 07:53, 11 April 2018
  • | about = DustMite, is a D source code minimization tool. It's helpful in finding toolchain problems.
    362 bytes (39 words) - 02:00, 18 May 2018
  • [https://github.com/dlang Source code] &mdash; 
    749 bytes (106 words) - 23:02, 15 September 2023
  • ...se, you shouldn't have problems changing it. Options might differ but most code should be compatible with all of them. (If you find problems, please file a == Running D code like a script ==
    5 KB (827 words) - 12:58, 16 July 2020
  • ...(You can just type it into the browser URL). Create the page and paste the code and replace the appropriate data. Make sure "feature" is set to "Blog". Sav
    652 bytes (105 words) - 11:31, 16 July 2018
  • ...k at code snippets of from [http://rosettacode.org/wiki/Category:D Rosetta Code]. * [http://rosettacode.org/wiki/Category:D Rosetta Code: D category]
    5 KB (896 words) - 04:48, 7 January 2018
  • * [[Commenting out code]] * [[Porting 32 Bit Code to 64 Bits]]
    3 KB (420 words) - 14:02, 29 October 2022
  • On code created today for 32-bit CPUs that may need to be used on 64-bit or larger
    477 bytes (87 words) - 21:42, 23 November 2012
  • ...ypes of arguments. Sort of like having a regular Python function in your D code. I didn't quite grasp the point of templates back then. ...e line numbers are relevant to the DMD v2.051 release). First, our example code:
    22 KB (3,353 words) - 07:36, 18 February 2018
  • ...os and Druntime source code directories. The location of the Phobos source code is: * Using <code>-L+</code> will not work if you use it together with the -lib switch. This is normal
    21 KB (3,493 words) - 14:16, 7 May 2015
  • ...a-9702-529fa782d63b Windows SDK] || Windows header files and C/C++ example code. ==Writing Code That Uses Resource Files==
    9 KB (1,312 words) - 14:17, 7 May 2015
  • | Const code bloat | Import path binding in source code
    9 KB (1,188 words) - 22:34, 13 July 2016
  • ...you find it difficult to manually extract a small example from your source code, [https://github.com/CyberShadow/DustMite DustMite] can help with automatic ...tool to find the pull request that introduced the change which broke your code. [https://github.com/CyberShadow/DustMite/wiki/Reducing-a-regression-betwee
    13 KB (2,079 words) - 12:48, 11 March 2021
  • ==== One-line Code Recipes ====
    2 KB (232 words) - 22:55, 17 July 2020
  • | about = #include C headers in D code ...F format) through one standard library interface. It is released in source code format under the Gnu Lesser General Public License.
    5 KB (619 words) - 01:43, 11 May 2021
  • * Dub package registry ([http://code.dlang.org/ code.dlang.org]) * Google Summer of Code Coordinator
    3 KB (341 words) - 20:17, 11 May 2017
  • ...int range using a struct template. [http://dpaste.dzfl.pl/6f230c83 Run the code] ==Program Code==
    4 KB (362 words) - 07:37, 18 February 2018
  • ...big metaprogramming capabilities, so mapping template chain onto compiled code might cause some trouble
    528 bytes (85 words) - 17:10, 25 November 2012
  • ...ub.com/rainers/cv2pdb cv2pdb]; stack frames; mangled symbols; shows source code alongside disassembly. Note: v2.01 has a bug that may cause frequent crashe | [http://code.google.com/p/ddt/ '''DDT''']
    6 KB (905 words) - 21:51, 19 November 2023
  • ...type in the page name into the browser URL). Create the page and paste the code and replace the appropriate data. Save.
    576 bytes (96 words) - 23:02, 9 June 2018
  • |desc=Run and share D code directly in your browser
    417 bytes (53 words) - 14:10, 1 March 2018
  • ...y ([[Phobos]]) or [[druntime]] source code, or the [[DMD]] compiler source code. The alternative D language compilers, [[GDC]] and [[LDC]] also use Github
    826 bytes (120 words) - 17:53, 18 January 2018
  • ...utomatically updated GUI library list in [[DUB]] please check the [https://code.dlang.org/?category=library.gui&limit=100 GUI category]. Note however that | about = Testing use of C++ FLTK GUI lib from D code
    6 KB (769 words) - 02:29, 14 September 2023
  • ...amples of automatically running DMD (e.g. when developing and testing some code):
    9 KB (1,445 words) - 04:49, 27 March 2018
  • ** Code breakpoints * Code folding for C++ / D and XML files.
    6 KB (846 words) - 18:30, 9 June 2018
  • If we make {{code|@property}} rewrite to a call, while leaving the rest the same, we fix prob ...S blur the difference between setter and getter that implicit when using {{code|@property}} as show below :
    3 KB (510 words) - 18:55, 28 May 2014
  • ...ard library documentation, both for the latest release and for the current code residing on your machine. That may get pretty involved, so let's leave it f ...ose. Also, Ddoc recognizes sections marked in a particular way as D source code. There are a few subtleties inherent to macro processors (e.g. how recursio
    27 KB (4,396 words) - 12:53, 18 June 2019
  • * Git (for fetching the source code, if not using a tarball) ...code>apt-get install llvm-dev libclang-common-<matching LLVM version>-dev</code> (the LLVM compiler-rt libraries aka <tt>libclang-common-*-dev</tt> are opt
    10 KB (1,573 words) - 22:08, 6 April 2022
  • The following code adds two multibyte numbers and a carry and returns the final carry. * The code clobers some registers and the current program status register.
    7 KB (997 words) - 20:40, 22 April 2016
  • ...clear about at all is how asm blocks mixed with normal D code (for example code between two asm blocks) interacts. ..., <tt>mingw32</tt>, <tt>darwin</tt>, <tt>solaris</tt>. Please migrate your code to the official identifiers; the old ones might go away soon.
    21 KB (3,125 words) - 13:03, 31 July 2021
  • '''This code manually defines __FUNCTION__ which break as of D 2.063 and uses a few now The program code is given in the next section. [http://dpaste.dzfl.pl/cdacef45 &#9654; Try i
    4 KB (458 words) - 11:55, 16 July 2020
  • ...test technologies in building reliable, maintainable, portable, high-level code. D has moved well ahead of any other language in its abilities to support a ...paign=Feed:+GoogleOpenSourceBlog+(Google+Open+Source+Blog Google Summer of Code Project involving the Open Bioinformatics Foundation] that is the fastest B
    17 KB (2,456 words) - 10:25, 25 March 2023
  • * Becomes nothrow, which enables code that uses it to become nothrow. Nothrow code does not need to produce exception unwinding wrappers, which can improve th == Breaking Existing Code ==
    1 KB (209 words) - 20:53, 26 May 2015
  • <code> </code>
    4 KB (583 words) - 20:00, 8 September 2015
  • Don't write code that way. Cons: Many useful idioms are precluded, high barrier to learn how to write code that
    5 KB (849 words) - 19:51, 1 September 2015
  • ...he main() function is entered. This allows you to write unittests for your code within the source file itself, thus making it more conducive for encouragin ...switch over to another unittesting system, and possibly write the testing code in a different language.
    8 KB (1,145 words) - 06:24, 15 February 2018
  • ...e that cannot be directly named outside of the scope it's declared in, but code outside the scope can still use this type by taking advantage of D's static ...the underlying implementation without requiring all users to update their code. Otherwise, every time the implementation changes you will have to update e
    3 KB (479 words) - 23:45, 10 September 2016
  • Often, during development, you may wish to comment out certain blocks of code for testing or debugging purposes. ...(before C99), this is accomplished by inserting a block comment around the code to be disabled:
    4 KB (541 words) - 09:44, 31 May 2017
  • The program code is given in the next section. ==Program Code==
    2 KB (203 words) - 03:26, 18 February 2018
  • ! scope="col" class="unsortable" | Code || [https://github.com/dlang/phobos/pull/2845 Code/Pull Request]
    10 KB (1,322 words) - 12:30, 9 September 2016
  • ...he D specification, behaves in an unexpected way, or generates problematic code. ...where the binaries generated by LDC run any slower than the DMD-generated code, or the performance is significantly worse than GDC. In such cases, LDC lik
    3 KB (539 words) - 22:29, 13 May 2015
  • ...th two different »drivers«, i.e. executables a user invokes to compile D code: * Use <code>ldc2 -h</code> for the list of basic options.
    4 KB (599 words) - 10:27, 7 August 2023
  • * Make sure the code base passes the test suite (ctest -j<n>) in the follwing configurations:
    4 KB (631 words) - 16:09, 9 November 2016
  • ...S_A'' and ''S_B'' can be accessed. [http://dpaste.dzfl.pl/485db6d6 Run the code] ==Program Code==
    5 KB (474 words) - 22:32, 20 January 2013
  • ...instantiating templates, producing error messages, etc. The same front-end code is used by [[DMD]], [[GDC]] and [[LDC]]. The back-end is what emits machine code. It contains code generation, optimization, object file writing, etc. The back-end is specifi
    39 KB (5,317 words) - 17:54, 7 April 2024
  • !'''Const code bloat''' ...design of the const system, writing const-correct code results in massive code duplication: each function returning a part of its argument should be imple
    5 KB (818 words) - 04:25, 17 January 2013
  • ...il/tree/master/src/dil/parser src/dil/parser] and the abstract syntax tree code in [https://github.com/azizk/dil/tree/master/src/dil/ast src/dil/ast].
    2 KB (252 words) - 13:06, 16 July 2020
  • ...nsistent with these conceptual views of the terms, such that a reader of D code that is using properties can see which members of a class are attributes an * Allows ambiguous-looking code:
    11 KB (1,542 words) - 20:09, 9 March 2014
  • ...me. This metadata can't otherwise be expressed except by using boilerplate code or separate files that explicitly state which declaration have which metada ...ew annotation names instead of new keywords: new keywords might render old code not compilable, while with new annotations that can never happen.
    4 KB (619 words) - 05:20, 17 January 2013
  • ...gle opCmp() function. This has two major benefits: firstly, it shrinks the code required for implementation by a factor of four; and secondly, it ensures t # Defining operators asks for code duplication. Usually people want to define all arithmetic operators to forw
    11 KB (1,700 words) - 05:45, 18 January 2013
  • ...a reasonable argument can be made that they should remain limited to avoid code bloat. However, they should be extensible within the D language, without mo This also provides an elegant solution to the code bloat problem. Various goodies could be included in RTTI inside version sta
    4 KB (553 words) - 08:09, 18 January 2013
  • Debug output is a common need when testing code or logging data. Therefore it is natural to provide a means to convert cust ...no longer used, it should instead populate a new <code>{TypeInfo Struct}</code> member ''xwriteTo'' function pointer with appropriate signature.
    6 KB (863 words) - 07:52, 19 January 2013
  • ...ntinuous integration. A regular merging and automated testing of developer code with the mainline codebase. * DRY: Don't Repeat Yourself (in code) a principle summarized as: Every piece of knowledge must have a single, un
    3 KB (513 words) - 21:28, 14 March 2020
  • * this could prevent inefficient intermediate code as reported in Issue 2356 and related, as it would be clear from "S" that a
    3 KB (377 words) - 18:28, 11 December 2013
  • * Properties allow executing additional code. Checking the supplied value, firing events,... .... This is a poor solution for properties as it allows to write nonsensical code:
    10 KB (1,440 words) - 21:40, 20 May 2015
  • The proposed system does not impose versioning policy; instead, it allows code to enact it in URL structure. ...line (including URLs) or in config files, or as pragmas inside the source code.
    10 KB (1,641 words) - 18:53, 28 May 2014
  • # @property functions can't be called with parentheses: <code>x._property()</code> is illegal! (Normal functions are explicitly not affected by this rule!) ...be called (delegate, function pointer, opCall), then <code>x._property()</code> calls the returned value! It essentially behaves exactly as a field would.
    6 KB (840 words) - 21:38, 20 May 2015
  • D is binary compatible with C ABI code. This allows to reuse the huge amount of high quality public C libraries. P
    3 KB (404 words) - 18:53, 28 May 2014
  • !'''Import path binding in source code'''
    2 KB (319 words) - 18:54, 28 May 2014
  • ...icitly importing _.d is already used. This will not conflict with existing code as it is either an error now or doesn't change the scope members.
    3 KB (453 words) - 18:56, 28 May 2014
  • ...module to be replaced with a package, without requiring changes to client code. It solves the problem of modules growing too large to be conveniently mana ...king a module into a package without breaking client code that assumes the code is still in one module.
    3 KB (471 words) - 18:54, 28 May 2014
  • ...s was decided against for this proposal. It would allow rather nonsensical code such as: ...rom a number of problems that present themselves when a compiler optimizes code that deals with things like memory-mapped I/O.
    5 KB (767 words) - 18:55, 28 May 2014
  • ...rent practices are unsafe and error prone. For example, one must check the code of all called functions to see if they don't perform GC allocations. In thi ...ed to not use GC at all (given that no static module constructors use GC). Code of the garbage collector doesn't need to be linked, leading to smaller exec
    4 KB (573 words) - 18:55, 28 May 2014
  • GCC's internal code representation allows volatile statements in the C sense, which is sufficie
    5 KB (721 words) - 10:23, 12 June 2016
  • The Valgrind plugin Callgrind can be used to profile D code, but it does not know how to handle D's mangled names. This program can be ===Code===
    2 KB (334 words) - 07:54, 5 April 2018
  • ...ps://www.google-melange.com/gsoc/homepage/google/gsoc2015 Google Summer of Code 2015 page]. If you are interested in participating in the 2015 GSOC as eit * SDC uses LLVM for code generation, so some familiarity with LLVM will be required (see http://llvm
    14 KB (2,288 words) - 04:08, 31 December 2016
  • Package extends private so that package members can be accessed from code in other modules that are in the same package. This applies to the innermos Public means that any code within the executable can access the member.
    8 KB (1,284 words) - 11:29, 15 February 2018
  • ...fere with them at all. It creates no new limitations and reduces amount of code breakage by changes in other modules. * Meta programming tools like <code>__traits</code> and .tupleof can access '''private''' symbols.
    4 KB (631 words) - 20:59, 8 August 2016
  • ...ion tool. It allows even more struct separation of implementation-specific code and cleans up object files from unneeded symbols, providing more freedom fo ...object file. They are not shown in traits like <code>__traits(allMembers)</code>. From the point of view of other modules they simply do not exist and may
    3 KB (475 words) - 18:56, 28 May 2014
  • * Break as little code as possible ...mbol will apply, if at all, to the value returned by that <code>@property</code>.
    17 KB (2,302 words) - 18:56, 28 May 2014
  • Error messages should ideally not expose the rewritten code.
    7 KB (1,018 words) - 18:57, 28 May 2014
  • ...ionable and that can be easily replaced either with equivalent and clearer code. ...eceived and also wants to return must be also annotated with <code>return</code>. Annotation are deduced for templates and lambdas, but must be explicit fo
    9 KB (1,448 words) - 19:51, 1 September 2015
  • == D source code tools == | about = Tool for analyzing D source code.
    541 bytes (59 words) - 18:40, 6 June 2018
  • ...the objects to know whether they can call '''foo''' with such objects. The code to do the dispatching mechanism by hand would typically look like: ...dding a new leaf class means the user has to inspect and edit the dispatch code.
    5 KB (663 words) - 13:13, 23 March 2014
  • ...lly, use your good taste and try to use a style similar to the surrounding code. Many parts of the [http://llvm.org/docs/CodingStandards.html LLVM Coding S ...upstream source <tt>#if IN_LLVM</tt> blocks, and keep the original source code around for easier comparison. Add a comment referring to the relevant issue
    9 KB (1,581 words) - 02:30, 15 February 2020
  • ...ll a property accessor function with <code>foo()</code> or <code>foo(arg)</code> and is even mandatory if you want to call a returned delegate/function: # So that we don't break existing code.
    14 KB (2,204 words) - 13:08, 11 July 2013
  • ...are first class functions. The DIP also proposes some way to mitigate the code breakage involved and allows optional parenthesis when no confusion is poss ...fication: language/compiler implementation?]. It has been tested on actual code that employs several of D's paradigms. (Sadly, SDC lacks support for some D
    6 KB (952 words) - 22:54, 17 October 2016
  • - Most utility functions/template code depends on have been
    3 KB (455 words) - 13:47, 28 September 2013
  • ...source and API, and is followed by a week of voting. During the review the code can be modified to appease the criticism, and it will be up to the submitte ...it should be in [[Phobos]]. And even if it is decided not to fit, if it is code you are interest in having, others are likely too and can be its own librar
    6 KB (1,027 words) - 21:55, 15 January 2014
  • | 3 ||use -cov to improve code coverage of Phobos modules || [https://codecov.io/gh/dlang/phobos/tree/mast ...e <code>has_public_example</code> module blacklist in <code>.dscanner.ini</code>
    11 KB (1,753 words) - 09:24, 1 May 2020
  • * Less code, no more horrible stubs. * Did I already mention less code?
    9 KB (1,306 words) - 20:04, 1 September 2015
  • ...dn't introduce any clever new algorithms. The main purpose was to move the code out of aaA.d into object_.d (or maybe a separate file that is publically im ...types in the AA. For example, if you declare "double[float] aa", the aaA.d code only gets the information about 'float' (via a TypeInfo reference), but no
    9 KB (1,516 words) - 20:17, 8 September 2015
  • bar.getter(); // Equivalent code if @property wasn't used. bar.setter(3); // Equivalent code if @property wasn't used.
    5 KB (743 words) - 15:51, 13 March 2013
  • |Nothing, it enables code that doesn't compile at the moment Requiring switching to unsafe code to do routine things like create immutable references is a glaring problem.
    5 KB (708 words) - 11:22, 23 February 2014
  • Using NASM and D on Posix works out of the box. To compile and link the code use:
    3 KB (413 words) - 10:13, 14 November 2014
  • * There seems to be a bug in the MC code leading to crashes similar to this in rare cases (https://github.com/ldc-de
    3 KB (376 words) - 11:22, 27 April 2014
  • See sample code for constructs with priority noted as comment.
    6 KB (904 words) - 04:39, 25 September 2014

View (previous 100 | next 100) (20 | 50 | 100 | 250 | 500)