digitalmars.D.learn - Json
- Cassio Butrico (1/1) Jun 11 2015 What does the .json file and how to use it?
- Dennis Ritchie (24/25) Jun 11 2015 In D a file with the extension *.json is used to describe packets
- Cassio Butrico (2/2) Jun 11 2015 Thank you for answering me so fast , where do I get the DUB for
- Dennis Ritchie (2/4) Jun 11 2015 http://code.dlang.org/download
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (7/8) Jun 11 2015 There is also the .json file that is produced by dmd's -X command line
- Cassio Butrico (3/11) Jun 11 2015 Thanks Ali , I did not know that. :)
What does the .json file and how to use it?
Jun 11 2015
On Thursday, 11 June 2015 at 23:58:33 UTC, Cassio Butrico wrote:What does the .json file and how to use it?In D a file with the extension *.json is used to describe packets that are included in your project, the dependency manager DUB. For example, you can install Eclipse with DDT and create a project with DUB. The file dub.json write the following: ----- { "name" : "myDupApp", "description" : "Carbon - Test.", "dependencies" : { "carbon": "~>1.4.1" } } ----- Save the file (Ctrl + S). Then in your project with DUB downloaded package `carbon`: http://code.dlang.org/packages/carbon After that you can safely use the package `carbon`: ----- import std.stdio, carbon.linear;; void main() { auto m = matrix!(2, 3, (i, j) => i * 3 + j); writeln(m); // [[0, 1, 2], [3, 4, 5]] }
Jun 11 2015
Thank you for answering me so fast , where do I get the DUB for windows ?
Jun 11 2015
On Friday, 12 June 2015 at 00:35:35 UTC, Cassio Butrico wrote:Thank you for answering me so fast , where do I get the DUB for windows ?http://code.dlang.org/download
Jun 11 2015
On 06/11/2015 04:58 PM, Cassio Butrico wrote:What does the .json file and how to use it?There is also the .json file that is produced by dmd's -X command line switch: dmd -X foo.d That outputs the members of the source code to foo.json in a way that may be useful for a tool. Ali
Jun 11 2015
On Friday, 12 June 2015 at 00:56:45 UTC, Ali Çehreli wrote:On 06/11/2015 04:58 PM, Cassio Butrico wrote:Thanks Ali , I did not know that. :) I really like your tutorial is great for goods .What does the .json file and how to use it?There is also the .json file that is produced by dmd's -X command line switch: dmd -X foo.d That outputs the members of the source code to foo.json in a way that may be useful for a tool. Ali
Jun 11 2015