Changeset 1257
- Timestamp:
- 08/31/09 06:04:53 (3 years ago)
- Files:
-
- trunk/docsrc/abi.dd (modified) (5 diffs)
- trunk/docsrc/attribute.dd (modified) (1 diff)
- trunk/docsrc/ctod.dd (modified) (1 diff)
- trunk/docsrc/dcompiler.dd (modified) (4 diffs)
- trunk/docsrc/dstyle.dd (modified) (3 diffs)
- trunk/docsrc/glossary.dd (modified) (2 diffs)
- trunk/docsrc/index.dd (modified) (1 diff)
- trunk/docsrc/windbg.dd (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docsrc/abi.dd
r989 r1257 368 368 $(I Shared) 369 369 $(I Const) 370 $(I I nvariant)370 $(I Immutable) 371 371 $(I TypeArray) 372 $(I TypeSarray) 373 $(I TypeAarray) 372 $(V2 $(I TypeNewArray) 373 ) $(I TypeStaticArray) 374 $(I TypeAssocArray) 374 375 $(I TypePointer) 375 376 $(I TypeFunction) … … 411 412 $(B x) $(I Type) 412 413 413 $(I I nvariant):414 $(I Immutable): 414 415 $(B y) $(I Type) 415 416 … … 417 418 $(B A) $(I Type) 418 419 419 $(I TypeSarray): 420 $(V2 $(I TypeNewArray): 421 $(B Ne) $(I Type) 422 ) 423 $(I TypeStaticArray): 420 424 $(B G) $(I Number) $(I Type) 421 425 422 $(I TypeA array):426 $(I TypeAssocArray): 423 427 $(B H) $(I Type) $(I Type) 424 428 … … 444 448 $(I FuncAttrPure) 445 449 $(I FuncAttrNothrow) 450 $(I FuncAttrProperty) 446 451 $(I FuncAttrRef) 447 452 … … 454 459 $(I FuncAttrRef): 455 460 $(B Nc) 461 462 $(I FuncAttrProperty): 463 $(B Nd) 456 464 ) 457 465 $(I Arguments): trunk/docsrc/attribute.dd
r1242 r1257 192 192 193 193 $(P $(I AlignAttribute) is ignored when applied to declarations 194 that are not structs or struct members. 194 that are not struct members. 195 Whether it applies to class members or not is implementation defined. 196 ) 197 198 $(P The $(I AlignAttribute) is reset to the default when 199 entering a struct, union, class, or function scope, and restored 200 when exiting that scope. 201 It is not inherited from a base class. 195 202 ) 196 203 trunk/docsrc/ctod.dd
r1242 r1257 670 670 ) 671 671 672 But #pragmas are nonportable both in theory and in practice from672 But $(TT #pragma)s are nonportable both in theory and in practice from 673 673 compiler to compiler. 674 674 675 675 <h4>The D Way</h4> 676 676 677 Clearly, since much of the point to setting alignment is for 678 portability of data, a portable means of expressing it is necessary. 677 $(P D has a syntax for setting the alignment that is common 678 to all D compilers. The actual alignment done is compatible 679 with the companion C compiler's alignment, for ABI compatibility. 680 To match a particular layout across architectures, use 681 $(TT align(1)) and manually specify it. 682 ) 679 683 680 684 ---------------------------- trunk/docsrc/dcompiler.dd
r1244 r1257 266 266 $(LI Unzip the archive into your home directory. 267 267 It will create 268 a $(TT ~/ dmd) directory with all the files in it.268 a $(TT ~/$(DMDDIR)) directory with all the files in it. 269 269 All the tools are command line tools, which means 270 270 they are run from a console window.) … … 273 273 274 274 $(CONSOLE 275 cp $(DMDDIR)/osx/bin/dmd.conf /etc275 sudo cp $(DMDDIR)/osx/bin/dmd.conf /etc 276 276 ) 277 277 ) … … 280 280 281 281 $(CONSOLE 282 chmod u+x $(DMDDIR)/osx/bin/{dmd,dumpobj,obj2asm, rdmd}282 chmod u+x $(DMDDIR)/osx/bin/{dmd,dumpobj,obj2asm,shell} 283 283 ) 284 284 ) … … 291 291 292 292 $(CONSOLE 293 cp $(DMDDIR)/osx/lib/$(LIB) /usr/lib293 sudo cp $(DMDDIR)/osx/lib/$(LIB) /usr/lib 294 294 ) 295 295 ) trunk/docsrc/dstyle.dd
r659 r1257 24 24 25 25 $(LI Hardware tabs are at 8 column increments. Avoid using 26 hardware tabs if they are set at a different value.) 26 hardware tabs if they are set at a different value. 27 Using spaces instead of tabs is preferred.) 27 28 28 29 $(LI Each indentation level will be four columns.) … … 49 50 statements: 50 51 ------------------------------- 51 /* 52 * comment 52 /* comment 53 53 * comment 54 54 */ … … 58 58 ) 59 59 60 $(LI Use nesting comments to 'comment out' a piece of trial code: 61 ------------------------------- 62 /+++++ 63 /* 64 * comment 60 $(LI Use $(CODE version (none)) to 'comment out' a piece of trial code 61 that is syntactically valid: 62 ------------------------------- 63 version (none) 64 { 65 /* comment 65 66 * comment 66 67 */ 67 68 statement; 68 69 statement; 70 } 71 ------------------------------- 72 ) 73 74 $(LI Use nesting comments to 'comment out' a piece of syntactically invalid code: 75 ------------------------------- 76 /+++++ 77 /* comment 78 * comment 79 */ 80 { statement; 81 statement; 69 82 +++++/ 70 83 ------------------------------- trunk/docsrc/glossary.dd
r1242 r1257 20 20 $(DD COW is a memory allocation strategy where arrays are copied 21 21 if they are to be modified. 22 ) 23 24 $(DT $(LNAME2 data_race, Data Race)) $(DD One thread reading or writing 25 a memory location while another thread is reading or writing that same location. 22 26 ) 23 27 … … 173 177 ) 174 178 179 $(DT $(LNAME2 sequential_consistency, Sequential Consistency)) 180 $(DD Data being written in one order in one thread 181 being visible in the same order to another thread. 182 ) 183 175 184 $(DT $(LNAME2 sfinae, $(ACRONYM SFINAE, Substitution Failure Is Not An Error))) 176 185 $(DD If template argument deduction results in a type trunk/docsrc/index.dd
r1242 r1257 93 93 $(P 94 94 This document is available as a 95 $(LINK2 http://www.prowiki.org/wiki4d/wiki.cgi?LanguageSpecification , pdf),95 $(LINK2 http://www.prowiki.org/wiki4d/wiki.cgi?LanguageSpecification/PDFArchive, pdf), 96 96 as well as in 97 97 $(LINK2 http://www.kmonos.net/alang/d/, Japanese) trunk/docsrc/windbg.dd
r1242 r1257 3 3 $(D_S Debugging D on Windows, 4 4 5 $(P The Microsoft Windows debugger $(TT $(DMDDIR)\ bin\windbg.exe) can be used to5 $(P The Microsoft Windows debugger $(TT $(DMDDIR)\windows\bin\windbg.exe) can be used to 6 6 symbolically debug D programs, even though it is a C++ debugger. 7 7 Versions of $(TT windbg.exe) other than the one supplied may not work with D. … … 11 11 12 12 $(P To prepare a program for symbolic debugging, compile 13 with the $(B -g ) switch:13 with the $(B -gc) switch: 14 14 ) 15 15 16 16 $(CONSOLE 17 dmd myprogram -g 17 dmd myprogram -gc 18 18 ) 19 19 … … 57 57 58 58 $(P For more comprehensive information on $(B windbg), consult the 59 file $(TT $(DMDDIR)\ bin\windbg.hlp).59 file $(TT $(DMDDIR)\windows\bin\windbg.hlp). 60 60 ) 61 61
