What is this strange alias syntax?

Stewart Gordon smjg_1998 at yahoo.com
Mon May 23 16:47:16 PDT 2011


On 23/05/2011 07:43, David Nadlinger wrote:
> On 5/23/11 8:41 AM, Andrej Mitrovic wrote:
<snip>
>> What's wrong with using this:
>>
>> alias void function(int, int) funcAlias;
>
> It's a function pointer type, not a function type.

How is that something wrong with it?  I.e. what can you do with a function type that you 
cannot possibly do by using the function pointer type instead?

Stewart.


More information about the Digitalmars-d-learn mailing list