AFAIK you can't. Jal is not C...

2010/3/15 m...@watty <[email protected]>:
> I knew it wouldn't work but I tried
>
> block
>    const PRIVATE_NUM = 78346378
>    var word private_value = 0
>
>   function do_clever_stuff () return word is
>
> -- do clever stuff with private bits. Like an FIR filter, PID filter,
> or PRNG shift register...
>
>          return (myanswer)
>     end function
> end block
>
>
> Sadly "block" hides Functions and Procedures too :(
>
> Any ideas folks how to "hide" so called static variables & consts?
>
> Make libraries much bettter...
>
> maybe  an export or public  keyword after function/procedure? Or
> simply not have block hide scope of procedures and functions and
> pseudo vars?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/jallib?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to