Liste des Groupes | Revenir à cl c |
On 26/08/2024 13:30, Ben Bacarisse wrote:Bart <bc@freeuk.com> writes:>
BLISS is a rather strange language. For something supposedly low level thanNot always. This is where left- and right-evaluation came in. On the
C, it doesn't have 'goto'.
>
It is also typeless.
>
There is also a key feature that sets it apart from most HLLs: usually if
you declare a variable A, then you can access A's value just by writing A;
its address is automatically dereferenced.
left of an assignment A denotes a "place" to receive a value. On the
right, it denotes a value obtained from a place. CPL used the terms and
C got them via BCPL's documentation. Viewed like this, BLISS just makes
"evaluation" a universal concept.
That doesn't explain why one language requires an explcition dereference in
the source code, and the other doesn't.
By "access A's value" I mean either read or write access.
>A denotes a "place" to receive a value. On the>
right, it denotes a value obtained from a place.
This /is/ confusing as it suggests a different rank for A depending on
whether it is an lvalue or rvalue, eg. some difference in level of
indirection. In fact that is the same on both sides.
My point was that HLLs typically read or write values of variables without
extra syntax.
Given a declaration like 'int A' then:
>
BLISS C
>
Read or write A's value .A A
Get A's address A &A
Les messages affichés proviennent d'usenet.