Given the following:

=====a======
void main(string[] args)
{
    FILE* fp = fopen(args[1].ptr, "r");
    if (!fp) throw new Exception("fopen");
}

=====b======
void main(string[] args)
{
    FILE* fp = fopen(args[1].dup.ptr, "r");
    if (!fp) throw new Exception("fopen");
}

Why does a fail but b succeed?

Reply via email to