(;)

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 556
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

(;)

Message par compsystems » sam. févr. 09, 2019 3:43 pm

Hello, in the following code, the only part where it is required (;) is in local Why?

Code : Tout sélectionner

function while_example_()
begin 
	local n;
	assume( n, integer )

	DispG
        ClrIO
	n:=1 
	while n <= 5 
        do
		printf( n )
		n := n + 1 
	end
	
	return Done
end
The result of the compilation shows some (;) extras in Sentence end_while => };; ; Why?

Code : Tout sélectionner

(NULL)-> 
{ local n; 
  assume(n,integer);  
  DispG;  
  ClrIO;  
  n:=1;  
  while(n<=5){ 
      printf(n);  
      n:=n+1;  
    };; ;  
  return(Done);  
}

Répondre