[Tutor] Condition for variable which doesn’t exist yet

Dennis Lee Bieber wlfraed at ix.netcom.com
Sun Oct 3 10:27:23 EDT 2021


On Sun, 3 Oct 2021 13:40:40 +0100, Alan Gauld via Tutor <tutor at python.org>
declaimed the following:


>
>There are hundreds of languages, I'm sure several do what you want.
>Fortunately, Python is not one of them.

	REXX probably wouldn't produce an error in the test -- but that's
because names that have not been assigned a value have the name itself as
value.

C:\Users\Wulfraed>rexx
say aName
b = anotherName
say b
^Z
ANAME
ANOTHERNAME

C:\Users\Wulfraed>regina
say aName
aName = anotherName
say aName
^Z
ANAME
ANOTHERNAME

C:\Users\Wulfraed>

	The IBM influence is probably obvious -- as it converts everything to
upper case <G>

{Regina installs two executables: REXX is statically linked, REGINA is
dynamically linked -- Regina allows run-time configuration of external
function libraries}



-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/



More information about the Tutor mailing list