The language reference does not mention that an assignment within a procedure 
header was allowed:

http://www.casadeyork.com/jalv2/jalv2/c690.html


But, as stated in the release notes for version 2.4q, "parsed assignment within 
a procedure definition (default parameter) but default parameters are not 
allowed." So, that there was no error before was actually a bug. 


By the way, first thing in your procedure is setting leader to "0". Why do you 
want to set it to "0" just before doing the same again?

Greets,
Kiste



________________________________
 
 


No errors appears on earlier versions.




On Wed, Jan 15, 2014 at 11:03 AM, Vasile Surducan <[email protected]> wrote:

Hi all,
>
>Trying to compile an old jal code I've noticed since JalV2.4q (Nov 13), the 
>code below is not compiled anymore, error:  "Default parameters are not 
>allowed". No error on Jal2.4q. 
>
>procedure print_binary_8( 
>   byte volatile out target, 
>   byte in x, 
>   byte in leader = "0" 
>) is
>   leader = "0"
>   for 8 loop
>      _print_base( target, x >> 7, leader )
>      x = x << 1
>   end loop
>end procedure
>
>thank you,
>Vasile
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to