[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Constants



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ah, ok, thanks,

by the way, which constants are predefined?

I now know about

	pi
	inf
	nil

regards
Till

On 27 Apr 2004, at 12:16, ccos wrote:

it aint a variable, in the sense that you can't declare it and store things in it.

try:

var pi;
pi = 3.14159;

you get an error the same way you do if you try var nil or inf.
these are all literals representing objects directly in the program text, in the same way that writing 4.4 is a literal, and are supported directly
by the compiler.

_c

On 27/04/2004, at 7:31 PM, Till Bovermann wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey there,

I was wondering about any Static variables like "pi" are defined in scLang.
Don't found anything...

thanks for reading

Till
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAjihwdULuWLxlveYRAj3kAJ9xHVDQ/tJTfUYMTyRDNYnyRufryACfd0X7
bVs9EDdv9yu5kdYk7JjNkTM=
=BvZ6
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users


_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAjkMbdULuWLxlveYRAoXAAJ9xqAJ2tHjwFbSpbceo8NTYQlk4cgCgjVZu
G1+XVJRK2F+2dZJ2jgP9N6A=
=IN2r
-----END PGP SIGNATURE-----