Last update March 7, 2012

Doc Comments /
Intro



Difference (last change) (no other diffs, normal page display)

Deleted: 124,234d123
jam tangan
jam tangan murah
jam tangan kw
hostgator coupon
kata mutiara
Jasa SEO
EZido
RDAnet
pioneer deh-1300mp
asus a53e-xa2
asus tf101-b1
asus tf101-a1
asus n53sv-eh72
asus republic of gamers g74sx
asus acer a5250
acer chromebook ac700
asus asus 53u
lg infinia 55lw5600
Sonicview 360 premier
asus 7 cu ft freezer
asus 30 single wall oven
brother cs6000i sewing machine
brother 1034d serger
brother sewing machines
Yokohama Geolandar H/T-S
crib tent tots in mind
kidco peapod plus
foscam fi8910w
samsung pl120 review
gopro helmet cam
Canon SX130IS
powershot s100
ContourHD 1080p
canon vixia hf r21
digital picture frame
canon ef 50mm f1.4
canon ef 70-300mm review
wide angle lenses
moving comfort sports bra
moving comfort bra
womens argyle sweater
bebe dresses
ViewSonic VX2250WM
Le Pan TC 970
Apple MacBook Air MC965LL
Sennheiser CX 880
plantronics cs540
ultrasonic jewelry cleaner
Sennheiser RS120
bose quietcomfort 15 acoustic noise cancelling headphones
logitech harmony one remote
logitech harmony 900
sony mhc-ec69i
sony mhcec909ip
bose wave music system
sony htss380
logitech squeezebox touch
sony dvp-fx970
onkyo tx-nr509
onkyo tx - nr609
onkyo ht-s3400
energy 5.1 take classic home theater system
polk audio psw505
onkyo ht-s5400
onkyo tx-nr709
belkin pf60
onkyo ht-rc360
denon avr-1912
Yamaha YHT-S400BL
fujitsu scansnap s1500
brother hl-2270dw
epson workforce 545
hp laserjet p2055dn
bushnell 8mp trophy cam
toshiba 32c110u
panasonic viera tc-p60s30
VIZIO E220VA
hauppauge wintv dcr-2650
Acer AM3970-U5022
Acer AspireRevo AR3700-U3002
Dell Inspiron i570
Dell GX620
Gateway FX6860-UR20P
Western Digital My Passport Essential SE 1 TB USB 3.0
Fujitsu ScanSnap S1300
Epson Perfection V300
Fujitsu SCANSNAP S1100
NeatDesk Desktop Scanner and Digital Filing System
Epson WorkForce Pro GT-S50
Kodak P811BK
Epson Perfection V330
Viewsonic VX2453MH
Asus VE228H
ViewSonic VA2431WM
Samsung B2230
HP 2711x
ASUS ML228H
Epson PowerLite Home Cinema 8350
Optoma PK301
Epson EX7210
Epson EX5210
ViewSonic PJD5133
Acer X1161P
FAVI RioHD-LED-2
Epson EX3210
ViewSonic PJD6531w
Trinity 360 Breville 800JEXL
Skil 3320-02
Delta 46-460
Grizzly G0555
Delta 18-900L

Table of contents of this page
Introduction Comments   
New book on D Programming Language   
Note at the bottom   
Searching the Specification   
WC example   
Specification Page   

Introduction Comments    

New book on D Programming Language    

The new book called "The D Programming Language" By Andrei Alexandrescu needs to be added to the list of books on the D home page - it was just released on June 14, 2010.

Note at the bottom    

Question: What does this mean?

Note: all D users agree that by downloading and using D, or reading the D specs, they will explicitly identify any claims to intellectual property rights with a copyright or patent notice in any posted or emailed feedback sent to Digital Mars.

Answers

  • I think it means that if you send Walter an email with suggestions regarding D, you must notify him if those suggestions include a concept or technique that is patented or copyrighted... assuming you know that, of course. -- Sean
  • Right. The idea is simply to keep D unencumbered by submarine patents and other belated claims of copyright ownership. I've been following the SCO v. Linux dispute, and don't want any of that nonsense infecting D. If you want to claim ownership of, say, a contribution to Phobos, clearly say so with that contribution. -- Walter
  • I think, as a convenience, we should add to this note the time-stamp of when this message first appeared on this wiki, or some such measure. Additionally, we must store all IP-address logs. The words "...reading the D specs..." are very much valid. See http://publictimestamp.org.
  • Wow, this message sounds waayy scarier than it actually is, then. I had no idea how to parse it; it sounded to me that by downloading or using D we were withdrawing some rights to Digital mars for some reason. I strongly recommend you re-word this please

Searching the Specification    

The documentation would benefit from a search button that only includes the official spec pages. The current Search button at the top of the page is for the entire website, and invariably gets hits mostly from the archives. I would often find it helpful to have another button that was restricted just to the spec pages.

For example, I wanted to check on how OutBuffer works. I have to know to look within the phobos page. It doesn't help to Ctrl-F on the main page.

See Searching Tips for some suggestions. -- JustinCalvarese

WC example    

If I read your example on the page http://www.digitalmars.com/d/index.html then I get doubts about D, I think it is a showcase how powerful D is. But it is a bit overwhelming for the curious. just make it simpler like below (which in it self introduces a lot already). This example will be obvious and interest people to look for more about D,

As to the wc example the use of std.unicode would show it's commitment to UTF-8 and the ease it can be used obvious! (other then my first name René (U+00E9) would end up being the word Ren

Thanks for your effort in making D

René de Zwart

#!/usr/bin/dmd -run
/* sh style script syntax is supported */

/* Hello World in D
   To compile:
     dmd hello.d
   or to optimize:
     dmd -O -inline -release hello.d
*/

import std.stdio;

void main(string[] args)
{
    writefln("Hello World, Reloaded");

    // auto type inference and built-in foreach
    foreach (argc, argv; args)
    {
        // Object Oriented Programming
        auto cl = new CmdLin(argc, argv);
        // Improved typesafe printf
        writefln(cl.argnum, cl.suffix, " arg: %s", cl.argv);
        // Automatic or explicit memory management
        delete cl;
    }

}

class CmdLin
{
    private int _argc;
    private string _argv;

public:
    this(int argc, string argv)	// constructor
    {
        _argc = argc;
        _argv = argv;
    }

    int argnum()
    {
        return _argc + 1;
    }

    string argv()
    {
        return _argv;
    }

    string suffix()
    {
        string suffix = "th";
        switch (_argc)
        {
          case 0:
            suffix = "st";
            break;
          case 1:
            suffix = "nd";
            break;
          case 2:
            suffix = "rd";
            break;
          default:
	    break;
        }
        return suffix;
    }
}

This example seems to be on the webpage now, but with one typo; writeln is used instead of writefln. gdc complained that writeln didn't exist.

Specification Page    


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: March 7, 2012 20:25 (diff))