Things to look up in the docs
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Fri Jan 1 08:26:48 PST 2010
Don wrote:
> bearophile wrote:
>> What are the parts of the D1/D2 languages that are both common enough
>> in programs and not easy to remember, so you need to look them often
>> in the docs (or in an example list, code snippets list, already
>> written code, etc)? This list is partially subjective, but probably
>> there are also some common trends.
>>
>> For example the syntax of opApply is one of the things I have often to
>> look up in the docs (while I never need the manual to remember how to
>> write a generator in Python, that has very similar purposes).
>>
>> Do you have other parts to add to this list?
>>
>> Bye,
>> bearophile
>
> is() expressions.
...and template parameter specialisations, which are somewhat related
since they use some of the same syntax.
// Does T end up being the array or element type here?
template Foo(T: T[]) { ... }
// How many template parameters do I have to specify when
// instantiating this template?
template Bar(T: U*, U: int) { ... }
-Lars
More information about the Digitalmars-d
mailing list