Related discussion in:
https://github.com/JuliaLang/julia/issues/9443

On Tue, 2016-01-26 at 01:58, Erik Schnetter <schnet...@gmail.com> wrote:
> 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 <ste...@karpinski.org> 
> 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 <t...@kelman.net> wrote:
>>>
>>> Were we going to deprecate that, or make it an error?
>>
>>

Reply via email to