A simple rule
Sergey Gromov
snake.scaly at gmail.com
Fri Jul 31 06:07:49 PDT 2009
Thu, 30 Jul 2009 21:57:33 +0200, downs wrote:
> 1) If it's a word, put it in the standard library.
> 2) Otherwise, put it in the compiler.
>
> For example:
>
> assert() -> library.
> complex -> library.
> void -> C-derived, compiler.
> real -> C-derived via long float, compiler.
> cfloat -> library.
> for -> compiler.
> foreach -> library.
> T[] -> compiler.
> T.dup, T.sort, T.reverse -> library.
This is one weird rule. This is probably because I'm not a native
English speaker, but I fail to see why 'complex' and 'foreach' are words
but 'for' is not. You probably need to clarify what a 'word' is.
Should all key /words/ go into the library?
More information about the Digitalmars-d
mailing list