Get the name of a function and the parameters?

grauzone none at example.net
Wed Apr 29 00:03:22 PDT 2009


Jarrett Billingsley wrote:
> On Tue, Apr 28, 2009 at 10:23 PM, Daniel Keep
> <daniel.keep.lists at gmail.com> wrote:
> 
>> That requires f to be a type, which loses you the actual names.  And you
>> cannot (last time I checked) have aliases in a tuple.
> 
> Check again - tuples can be any arbitrary mix of types, expressions,
> and aliases.  :)

Wow, it actually works. But I really don't understand why. It seems the 
compiler directly passes symbols as tuple arguments, and later dumbs it 
down to what it needs (like an alias, a type, ...).

Makes me think nobody will ever be able to write a separate bug-free DMD 
frontend. I'm scared.


More information about the Digitalmars-d-learn mailing list