• returning decision (or loop etc)

    From fir@profesor.fir@gmail.com to comp.lang.c on Sat Nov 14 17:24:22 2026
    From Newsgroup: comp.lang.c

    maybe not worth stating a new thread but i noticed
    that there is some unused syntax posiblility i mean

    foo(int a)
    {
    return if(a>0 && a<100) ;
    }

    i eman you return a decision

    so you can use

    foo(b) {} else {}

    asme you could return a loops or other construct of this kind


    foo(int k)
    {
    return for(int i=0;i<k; i++);
    }

    foo(89) {}

    here its a bt of complication c uses a variable i which is like
    inaccesible call side but that eventually can be resolved

    it would need some design on an abi level, but it rather can be
    usable esp if maybe generalized
    --- Synchronet 3.22a-Linux NewsLink 1.2