Liste des Groupes | Revenir à cl c |
On 23/03/2024 01:09, Kaz Kylheku wrote:On 2024-03-22, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
This is not the issue the comes up in the OP (or the issue that was assumed as I don't think the OP has clarified).I think lack of demand combines with it actually being an extremely difficult task.I'm not aware that any such language exists, at least in the mainstream
(and I've looked at a *lot* of programming languages). I conclude that
there just isn't enough demand for that kind of thing.
Consider something as simple as "x++;" in C. How could that be implemented? Perhaps the cpu has an "increment" instruction. Perhaps it has an "add immediate" instruction. Perhaps it needs to load 1 into a register, then use an "add" instruction. Perhaps "x" is in memory. Some cpus can execute an increment directly on the memory address as an atomic instruction. Some can do so, but only using specific (and more expensive) instructions. Some can't do it at all without locking mechanisms and synchronisation loops.
So what does this user of this mythical LLL expect when he/she writes "x++;" ?
Les messages affichés proviennent d'usenet.