Example: wc
Chris via Digitalmars-d
digitalmars-d at puremagic.com
Mon Nov 23 06:10:34 PST 2015
On Monday, 23 November 2015 at 12:44:55 UTC, bachmeier wrote:
> On Monday, 23 November 2015 at 12:19:08 UTC, Chris wrote:
>> On Monday, 23 November 2015 at 11:10:29 UTC, bachmeier wrote:
>>> I was looking under "Books & Articles" and one of the submenu
>>> items is titled "Example: wc". So I thought it must be a heck
>>> of an example, but upon clicking, I saw a program with a
>>> bunch of nested foreach statements and no explanations. Why
>>> is this on the front page sidebar at all? It certainly
>>> doesn't belong under "Books & Articles" because it's just
>>> code.
>>>
>>> Is this something we can move to the wiki? I will make the
>>> change, but I'm hoping somebody will say something if it
>>> belongs there.
>>
>> It used to be the code example displayed on the start page, if
>> I remember correctly. Shouldn't it be put there (with some
>> text that explains what's going on), if not already done so?
>>
>> Looks like it was temporarily "parked" under "Books &
>> Articles" and forgotten.
>
> Okay. Do you know how to add it as a code example? It doesn't
> make a good first impression.
The code doesn't look up to date and maybe it's been replaced
with a more up to date example (i.e. with range chaining). It
uses ulong instead of size_t. I dunno, maybe it should be dropped
completely.
More information about the Digitalmars-d
mailing list