I
Ian Collins
I wrote on this before many times in this messages tree
1. local linking i see as a fix to the present c - it will break no line
2. other improvements makes a distinct language I work on almost 10 years (maybe not such many but I forgot when it had begun) I used to call it C2 as a 'codename'
I Said here on about 4 improvements, some
other I am thinking on are also:
1) realloc keyword
int tab[1000];
realloc tab[2000];
- it will make a new dynamic memory paradigm
(or almost) other than both GC and no
malloc/free - like management - labels/handlers
ale never disjoined with ram content here
This doesn't make a great deal of sense..
2) larger structures are passed (in and out) by
hideen adress, return value is always on upper
scope so there are no waste on passing
struct float3 {float x,y,z};
(float3) cross(float3 x, float3 y) //by adr not value
{
return { x.y * y.z - x.z * y.y,
x.z * y.x - x.x * y.z,
x.x * y.y - x.y * y.x} //thru addr fill to ram on upper scope
//...
}
(important - this one is efficient
and handy one, fills holes in present c)
What you are describing there is pass by reference and return value
optimisation (RVO), both present in C++.
3) couple of other ideas
ex 'build in' types
float3 or float4 float8 int4 etc related to sse/avx types, accelerated by sse operations on such
types
This could probably be implemented in current C++. Maybe you are
working in the wrong language?