Jump to content

Enforced immutability: Difference between revisions

add FreeBASIC
(Added Lua example)
(add FreeBASIC)
Line 393:
<lang Fortran>subroutine sub1(n)
real, intent(in) :: n</lang>
 
=={{header|FreeBASIC}}==
<lang freebasic>#define IMMUT1 32767 'constants can be created in the preprocessor
dim as const uinteger IMMUT2 = 2222 'or explicitly declared as constants
</lang>
 
=={{header|Go}}==
781

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.