Hi ,
In Karel, i once in awhile will come across an language instruction that looks like this :: in the code. I cannot seem to find this anywhere in the karel manual and wondered if someone could please answer what it does.
Here are some examples of its use. These snippets are from some modbus socket messaging code running on a RJ3ib controller.
IF (debug > 1) THEN; WRITE('bc = ', bc::3::16, cr); ENDIF
-- Read the Reference
READ file_var(ref::2)
-- Send Response!
header[6] = 6
WRITE file_var(header[1]::1, header[2]::1, header[3]::1, header[4]::1, header[5]::1, header[6]::1,
header[7]::1, fc::1, ref::2, wc::2)
IF (debug > 3) THEN
WRITE('pr_value.x = ', pr_value.x::6::2 , cr)
WRITE('pr_value.y = ', pr_value.y::6::2 , cr)
WRITE('pr_value.z = ', pr_value.z::6::2 , cr)
WRITE('pr_value.w = ', pr_value.w::6::2 , cr)
WRITE('pr_value.p = ', pr_value.p::6::2 , cr)
WRITE('pr_value.r = ', pr_value.r::6::2 , cr)
ENDIF
Thanks much -Eric