There are several differences.
The most important is that block allows you to define local variables:
block( [ var1, var2, ...], ...)
block also supports 'return' and tags/go (though goto's are of course not
usually used in modern coding styles)
block([i:1], l, i: i+1, if i<3 then go(l),i) => 3
block( return(5), 1) => 5
I believe this is all clearly documented in ? block
-s
On Sat, Aug 13, 2011 at 10:59, Bernard Hurley <bernard at marcade.biz> wrote:
> Hi,
>
> Is there any difference in functionality between:
>
> (... some code... )
>
> and:
>
> block (... some code... )
>
> ?
>
> Thanks,
>
> Bernard.
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>