Subject: Re: F????C?????? ??? D??????H of strucures and functions - in deeper c functions and structures no longer exist
fir pisze:
Jim Jackson pisze:
On 2026-09-14, fir <profesor.fir@gmail.com> wrote:
Richard Harnden pisze:
On 14/09/2026 16:09, fir wrote:
the title is somewhat a joke (something liek clickbait)
Stop with the stupid subject lines.?? Most people ignore you as is, but >>>> this is taking the piss.
And "leik" is spelt "like".?? You know this.?? You keep doing it
anyway.
You are being an idiot on purpose.
i think your intelligence lewel is known fella..you should do something
with it
Actually he has a bit of a point. I certainly don't take you seriously
either.
˙well he has more than a bit of point - sad its a point of big stupidity
i know i write things not immediate to understand and i make typos, but
if someone not understant spesific sentence if will ask for explanation
i may explain some of them ;c some typos are to guess i guess
i may try t explain it yet one time
imagine you gat
m
m has a properties of
1) function (you may call it (with arguments), inside it has c code inside)
m(2, "sss");
2) structure - you may "instantiate" it, pass it as structure, asign its fields, make table of it
m[23];
m.x = m.x*7;
foo(m);
foo(&m);
3) builtin type, you may use it with operators
m=m*m;
4) module/piece of code you may program it/write its code
it may contain fielsd and functions
m(int a, char* txt)
{
int x,y,z;
printf("you called m");
void f() {}
*(m alias_of_m)
{
return m.x*alias_of_m.x + m.y*alias_of_m.y + m.z*alias_of_m.z;
}
}
MODULES STRUCTURES BUILTINTYPES FUNCTIONS are all teh same now
so the program has i would say liek fractal structure
dot knwo how to call it i call it usually module
(ut you may also name it say midule - not to confuse with old definition
of module a)
now what you called structure is module, what you call module or c file builtin type is module, and strucyure is module
is module,
sou you open editor wih code and you only have modules (midules)
in some sort of hiermodular (hipermidular) language..midules everywhere
(immediate vaues like 2 also probably vcan be seen as modules
buth with const value, so i dont exactly knwo what yet stayed which is
no module
some say its stupid BUT adding function properties to structures and
vice versa ..unifying it all just increase language expresion so its
LOGICAL consequence to have it..in such view separate function/structures/modules/builtin types is a MISTAKE
not make this mistake and you got midules (modules) everywhere
(yawn)
hope its clear that i used here new name "midule" for use for a moment
to show that all this 4 thigs unify in one new concept which not quite
has a name (and which may i fact be seen as each of those four but
extendad to all of them)
its LOGICAL becouse codes wit this are better it has some real
improvement (for example fact that what used to be a function now has
internal storage allows to reuse its internal values not being forced to
pass arguments each time again
like
squirrel(10,20); /set squirret to field 10,20 on map
squirrel.move_rand(); reuses internal posiition to change it by +-1 in x
and y
//thsi maybe strictly not ilustrates the argument passing opition
i more like menat
print("hello"): //if "hello" was set to internal pointer you may call
print(); //reusing last text which may be slightly faster (i assume
print dont use stack but assigments
print_txt = "hello";
print();
reusing it is faster as you dont need to do
print_txt = "hello";
print();
print_txt = "hello";
print();
print_txt = "hello";
print();
but
print_txt = "hello";
print();
print();
print();
i got no time to explain all teh details of thsi potential optimisations
amybe more optimisations is seen in return values
if sincos is a module
sincos(angle);
and it has internal properties sin, cos (as when you count sin it
is likely to count both i think then its better to have option
to acces them as a field of internal record
sincos(angle);
float y = sincos.sin;
float x = sincos.cos;
so those unifications resolve problems and have good impact on efficincy
imo its not ust a syntaxical toying
--- PyGate Linux v1.5.19
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)