fractalide/fractallang — pull request #15 by dmichiels (2014-04-14 10:30:34+00:00)
Title: Bufferarguments

Two changes :
1) fix #7
The size of the buffer is now 25 by default, and can be specified at component creation. For that the inPort and inArrayPorts declaration have change :
instead of
```
component{inPort(name: proc ... end)
inArrrayPort(name: proc ... end)
```
we have
```
component{inPort(name( proc ... end))
inArrrayPort(name(proc ... end))
```

In the record ```name(proc...end)```, we can add an feature "size" that specifiy the size of the buffer for this input port, like
```
name(proc ... end
size:10)
```
This feature is optional.

2) fix #9
The arguments given to all procedures in component (input port procedures and independant procedures) are changed. From :
```
proc{$ In Out Var Options State} ... end
proc {$ Out Var Options State} ... end
```
to
```
proc {$ In Out Component} ... end
proc{$ Out Component} ... end
```

Component is the record representing the component, so ```Var == Component.var```, ```Options == Component.options```, ...
More informations are available.