fir pisze:
fir pisze:
fir pisze:
as to modules c need some concept of modules/objects
(in previos post when i use name object i mean this proper normal sense
of it not c++ like crap)
the concept of module is natural, its a number of function and
data that make separate entity and is also related to things that are
in one separate file
hovever how to denote them is unclear (to me )
there are at least 3 options, one id to treat a file as module
say
clog.c˙ file and its contents is module
second is use such
module slog
//...
module screen
/....
module window
the definition of nex module ends the previous
and there is also
module slog
{
}
probably the worst but as an option probably may stand
also i think as i said module needs some kayword or something that
wpuld work like this keyword which will initialise it.. that is
helpfull to initialise it and maybe deinitialise it saving ram or
maybe put it in some context only
also module should prbably have freestanding code like
module slog
{
˙˙ printf("\n module started ");
˙˙ tab[100][100]
˙˙int foo() {}
˙˙int boo() {}
}
it also should prbably take arguments to initialise it according to
runtime parameters
module slog (int size_x, int size_y)
{
˙˙ printf("\n module started ");
˙˙ tab[size_y][size_x]
˙˙int foo() {}
˙˙int boo() {}
}
probbaly those pinpoints should be established in this freestanding
space
module slog (int size_x, int size_y)
{
˙˙ printf("\n module started ")
run_frame += run
˙˙ tab[size_y][size_x]
˙˙int foo() {}
˙˙int boo() {}
˙˙int run() {}
}
so client side would have at least trace of this module is installed
on his side of code
so in fact it is shown that module is in fact function but with
someadditional properties, and that function is in fact structure
sometimes
like
module foo()
{
˙˙˙ int x,y,z;˙ //only freestanding data
}
this is also saying as you usually not instal functions so
maybe not need for them but if you instal overall module over them
still possibly better to instal the father module
so in fact concept of function (and structure) is gone you only have
modules (?)
but the modules can be named with a word to chose becouse i could for example use world structure and thus it would be "hyperstructural c"
not "hypermodular c" as i used to call it..im not sure which name
is better maybe even hyperstructural is better name (i will see yet)
? ya!
some thoughts yet
as it seen that this instaling should be generally dynamical then it
would need work in such codes like
if(a<2) install slog ;
this means some things
1) one your empty main module should accept freestanding code
(as in python afir)
main.c
print "hello"
no need of main(0 function, more: it seems logical error to have it
well some may say if function is non existant then
main { print "hello" }
is the same
2) yet some other thughts who escaped me..it was something as yu would
need instal this things than maybe syntax for it shpuld be skimpy,
im not sure...it seems that it should be skimpy or non existant but it
needs probably be also notable to see what is being installed (?)
you would need to instal clib for example
main {
instal clib ///????
print "hello"
}
i also wonder if not that you use standard cpu and ram should not be
denoted probably as some 'class' of demands this program has which would
adress the portability topic
? ya!
--- PyGate Linux v1.5.19
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)