i once remember was writing about things that inheritance is wrong
-
the general conclusion realated to this (though specific conclusuins was other i dont remember but it was thatmore proper inheritance is
(i donr remember) containing of substrutures (i dont remember so
this is in arhive of this group, i remember i was writing on this)
the general conclusion related to his is could ba said that tag systems
are much better than tree structures - thsi is becouse if you have
something (say its file) you could-a only have one directory and one directory above this when in reality you would like to have many
- its tag system (or what its called if it have other name, i call it
tag system)
i not noticed hovever stict conclusion fo it : C scopes
c scopes have tree structure { {}{{}{}}} etc so they ate just wrong
you should allow the intersection od scopes
like
a{
b{
}//end of a
} //end of b
On 12/05/2026 11:22, fir wrote:
i once remember was writing about things that inheritance is wrong
-
the general conclusion realated to this (though specific conclusuins was
other i dont remember but it was thatmore proper inheritance is
(i donr remember) containing of substrutures (i dont remember so
this is in arhive of this group, i remember i was writing on this)
the general conclusion related to his is could ba said that tag systems
are much better than tree structures - thsi is becouse if you have
something (say its file) you could-a only have one directory and one
directory above this when in reality you would like to have many
- its tag system (or what its called if it have other name, i call it
tag system)
i not noticed hovever stict conclusion fo it : C scopes
c scopes have tree structure { {}{{}{}}} etc so they ate just wrong
you should allow the intersection od scopes
like
a{
b{
}//end of a
} //end of b
There are a lot of difficulties with this, better to explicitly transfer lives between scopes:
{
int var1,var2;
int var3;
}
: extend(var2,var3) :
{
++var1;
}
There are still some problems like: isn't it too easy to transfer ainter-function scopes or inter file-scopes
pointer to a variable that's gone out of scope, easier than when
returning a value.
no i dint mean that this is rather stupid, i meant more like
Tristan Wibberley pisze:
On 12/05/2026 11:22, fir wrote:no i dint mean that this is rather stupid, i meant more like
i once remember was writing about things that inheritance is wrong
-
the general conclusion realated to this (though specific conclusuins was >>> other i dont remember but it was thatmore proper inheritance is
(i donr remember) containing of substrutures (i dont remember so
this is in arhive of this group, i remember i was writing on this)
the general conclusion related to his is could ba said that tag systems
are much better than tree structures - thsi is becouse if you have
something (say its file) you could-a only have one directory and one
directory above this when in reality you would like to have many
- its tag system (or what its called if it have other name, i call it
tag system)
i not noticed hovever stict conclusion fo it : C scopes
c scopes have tree structure { {}{{}{}}} etc so they ate just wrong
you should allow the intersection od scopes
like
a{
b{
}//end of a
} //end of b
There are a lot of difficulties with this, better to explicitly transfer
lives between scopes:
{
-a-a int var1,var2;
-a-a int var3;
}
-a-a : extend(var2,var3) :
{
-a-a ++var1;
}
There are still some problems like: isn't it too easy to transfer a
pointer to a variable that's gone out of scope, easier than when
returning a value.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 57:39:28 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
4 files (9,632K bytes) |
| Messages: | 285,926 |