Changeset 1257

Show
Ignore:
Timestamp:
08/31/09 06:04:53 (3 years ago)
Author:
walter
Message:

update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docsrc/abi.dd

    r989 r1257  
    368368    $(I Shared) 
    369369    $(I Const) 
    370     $(I Invariant
     370    $(I Immutable
    371371    $(I TypeArray) 
    372     $(I TypeSarray) 
    373     $(I TypeAarray) 
     372$(V2      $(I TypeNewArray) 
     373)    $(I TypeStaticArray) 
     374    $(I TypeAssocArray) 
    374375    $(I TypePointer) 
    375376    $(I TypeFunction) 
     
    411412    $(B x) $(I Type) 
    412413 
    413 $(I Invariant): 
     414$(I Immutable): 
    414415    $(B y) $(I Type) 
    415416 
     
    417418    $(B A) $(I Type) 
    418419 
    419 $(I TypeSarray): 
     420$(V2 $(I TypeNewArray): 
     421    $(B Ne) $(I Type) 
     422
     423$(I TypeStaticArray): 
    420424    $(B G) $(I Number) $(I Type) 
    421425 
    422 $(I TypeAarray): 
     426$(I TypeAssocArray): 
    423427    $(B H) $(I Type) $(I Type) 
    424428 
     
    444448    $(I FuncAttrPure) 
    445449    $(I FuncAttrNothrow) 
     450    $(I FuncAttrProperty) 
    446451    $(I FuncAttrRef) 
    447452 
     
    454459$(I FuncAttrRef): 
    455460    $(B Nc) 
     461 
     462$(I FuncAttrProperty): 
     463    $(B Nd) 
    456464) 
    457465$(I Arguments): 
  • trunk/docsrc/attribute.dd

    r1242 r1257  
    192192 
    193193    $(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. 
    195202    ) 
    196203 
  • trunk/docsrc/ctod.dd

    r1242 r1257  
    670670) 
    671671 
    672        But #pragmas are nonportable both in theory and in practice from  
     672       But $(TT #pragma)s are nonportable both in theory and in practice from  
    673673       compiler to compiler.  
    674674 
    675675<h4>The D Way</h4> 
    676676 
    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    ) 
    679683 
    680684---------------------------- 
  • trunk/docsrc/dcompiler.dd

    r1244 r1257  
    266266    $(LI Unzip the archive into your home directory. 
    267267    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. 
    269269    All the tools are command line tools, which means 
    270270    they are run from a console window.) 
     
    273273 
    274274$(CONSOLE 
    275 cp $(DMDDIR)/osx/bin/dmd.conf /etc 
     275sudo cp $(DMDDIR)/osx/bin/dmd.conf /etc 
    276276) 
    277277    ) 
     
    280280 
    281281$(CONSOLE 
    282 chmod u+x $(DMDDIR)/osx/bin/{dmd,dumpobj,obj2asm,rdmd
     282chmod u+x $(DMDDIR)/osx/bin/{dmd,dumpobj,obj2asm,shell
    283283) 
    284284    ) 
     
    291291 
    292292$(CONSOLE 
    293 cp $(DMDDIR)/osx/lib/$(LIB) /usr/lib 
     293sudo cp $(DMDDIR)/osx/lib/$(LIB) /usr/lib 
    294294) 
    295295    ) 
  • trunk/docsrc/dstyle.dd

    r659 r1257  
    2424 
    2525    $(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.) 
    2728 
    2829    $(LI Each indentation level will be four columns.) 
     
    4950    statements: 
    5051------------------------------- 
    51 /* 
    52  * comment 
     52/* comment 
    5353 * comment 
    5454 */ 
     
    5858    ) 
    5959 
    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 
    6566     * comment 
    6667     */ 
    6768     statement; 
    6869     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; 
    6982 +++++/ 
    7083------------------------------- 
  • trunk/docsrc/glossary.dd

    r1242 r1257  
    2020    $(DD COW is a memory allocation strategy where arrays are copied 
    2121    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. 
    2226    ) 
    2327 
     
    173177    ) 
    174178 
     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 
    175184    $(DT $(LNAME2 sfinae, $(ACRONYM SFINAE, Substitution Failure Is Not An Error))) 
    176185    $(DD If template argument deduction results in a type 
  • trunk/docsrc/index.dd

    r1242 r1257  
    9393$(P 
    9494This 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), 
    9696as well as in 
    9797$(LINK2 http://www.kmonos.net/alang/d/, Japanese) 
  • trunk/docsrc/windbg.dd

    r1242 r1257  
    33$(D_S Debugging D on Windows, 
    44 
    5 $(P The Microsoft Windows debugger $(TT $(DMDDIR)\bin\windbg.exe) can be used to 
     5$(P The Microsoft Windows debugger $(TT $(DMDDIR)\windows\bin\windbg.exe) can be used to 
    66symbolically debug D programs, even though it is a C++ debugger. 
    77Versions of $(TT windbg.exe) other than the one supplied may not work with D. 
     
    1111 
    1212$(P To prepare a program for symbolic debugging, compile 
    13 with the $(B -g) switch: 
     13with the $(B -gc) switch: 
    1414) 
    1515 
    1616$(CONSOLE 
    17 dmd myprogram -g 
     17dmd myprogram -gc 
    1818) 
    1919 
     
    5757 
    5858$(P For more comprehensive information on $(B windbg), consult the 
    59 file $(TT $(DMDDIR)\bin\windbg.hlp). 
     59file $(TT $(DMDDIR)\windows\bin\windbg.hlp). 
    6060) 
    6161