"BCS" <n...@anon.com> wrote in message 
news:a6268ff5f598cba54ecba23...@news.digitalmars.com...
>
> void fn(char[] str, S s)
> {
>    with(s)
>    {
>         sscanf(str.ptr, "<%i, %i, %i>", &x, &z, &y); // I'm not adding 
> this to S
>    }
> }
>

You don't really see that as an improvement over this do you?:

void fn(char[] str, S s)
{
    sscanf(str.ptr, "<%i, %i, %i>", &s.x, &s.z, &s.y);
}

If anything, the "with" version looks worse to me, and those three "s." are 
trivial. 


Reply via email to