I didn't know that you can write
```Julia
type B
    i::Int
    b(x)=2x
    B(x)=new(b(x))
end
```
and thus get a very private function `b`...

-erik


On Mon, Jan 25, 2016 at 7:46 PM, Stefan Karpinski <[email protected]> wrote:
> Probably a good idea. But it does lead to the question of what exactly
> should be allowed in type blocks. Obviously method definitions are
> necessary, but at least global variable declarations are also sometimes
> used.
>
> On Mon, Jan 25, 2016 at 7:39 PM, Tony Kelman <[email protected]> wrote:
>>
>> Were we going to deprecate that, or make it an error?
>
>



-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to