June 24, 2003 Syntax regularity and consistence | ||||
---|---|---|---|---|
| ||||
D has a algol like syntax like C and like C++ . But there are some point where the syntax don't have a regularity and consistence with the remaining of the language. The new, delete and cast, for example, do not conform with the syntax of C/C++ or D. Why they are not simple functions like in math? Why not write they as "language functions"? foo = New(typeOfFoo, 1, 2, 3); Delete(Foo); bar = cast(foo, typeOfBar); s = format("Why not %s ?" , s2); |
June 24, 2003 Re: Syntax regularity and consistence | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bono Vox bono | In article <bd85sc$1m5$1@digitaldaemon.com>, Bono Vox bono@u2.art says... >bar = cast(foo, typeOfBar); I'd prefer bar = cast(typeOfBar, foo); |
Copyright © 1999-2021 by the D Language Foundation