|
- Author:
- JJR (IP: 207.200.150.202)
- Timestamp:
- 01/26/09 17:59:31 (15 years ago)
- Comment:
Some fixes to continuity and flow
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TopicGettingStarted
v6 |
v7 |
|
1 | 1 | == Getting Started == |
---|
2 | 2 | |
---|
3 | | (... in progress ...) |
---|
4 | | |
---|
5 | | ... Need to add basic package installation instructions here ... |
---|
| 3 | It is time for our initial Tango foray. Before we begin, however, we need to make sure that the Tango package is properly installed and configured. This information is thoroughly covered in [wiki:TopicInstallTango Appendix B], so before proceeding here it would be best to follow the directions contained there. Tango accomodates several different source building methods, therefore it is important to take a little time to familiarize ourselves with them before advancing into Tango particulars. |
---|
6 | 4 | |
---|
7 | 5 | == Some Basic Steps == |
---|
8 | 6 | |
---|
9 | | After a successfull installation, the first thing to do is trying to get our first basic steps compiled and run. |
---|
10 | | |
---|
11 | | Lets first say hello to our dancing partner, the computer: |
---|
| 7 | In our first movement, we try a small D sample to verify that Tango is configured as expected for our system and compiler. |
---|
12 | 8 | |
---|
13 | 9 | {{{ |
---|
21 | 17 | }}} |
---|
22 | 18 | |
---|
23 | | This illustrates bare console output, with no fancy formatting. One could use the `Stdout` module instead, which supports quite sophisticated formatting options. |
---|
| 19 | This illustrates bare console output, with no fancy formatting. |
---|
24 | 20 | |
---|
25 | | Console I/O in Tango is UTF-8 across both Linux and Win32, and conversion between various unicode representations is handled as necessary by higher level constructs such as ''Stdout'' and ''Format''. |
---|
| 21 | One could use the `Stdout` module instead, which supports quite sophisticated formatting options. Console I/O in Tango is UTF-8 across both Linux and Win32, and conversion between various unicode representations is handled as necessary by higher level constructs such as ''Stdout'' and ''Format''. We will see this higher functionality demonstrated in later lessons. |
---|
26 | 22 | |
---|
27 | 23 | Now we also expect our computer to tell us something. In this case, we use '''Cin.get()''' to retrieve a string from console: |
---|
50 | 46 | dsss build mytestprogram.d |
---|
51 | 47 | }}} |
---|
| 48 | |
---|
| 49 | Success! We have completed the first lesson in Tango. |
|
|
|
|
|
Copyright © 2006-2024 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic