Manifest constants using 'manifest' keyword?

Vladimir Panteleev thecybershadow at gmail.com
Sat Dec 22 08:50:22 PST 2007


On Sat, 22 Dec 2007 15:21:55 +0200, Hxal <hxal at freenode.d.channel> wrote:

> Leandro Lucarella Wrote:
>
>> According to phobos changeset 535[1] I guess we have a new 'manifest'
>> keyword to define manifest (to be redundant) constants. I really think he
>> should went with alias or macro or with other better *existing* keyword,
>> but is definitely better than enum.
>>
>> [1] http://www.dsource.org/projects/phobos/changeset/535
>
> I wonder if now that we have "manifest" meaning "taking no storage space",
> it could be made to work for functions too (inlining every call to the function).

That would be great, but I think macros will do that better.
I think it's noteworthy that some languages like Delphi have an "inline" keyword for functions (and it works across units/modules).

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list