Visual D 0.3.26 released

Alex Rønne Petersen xtzgzorex at gmail.com
Fri Aug 26 08:26:47 PDT 2011


On 26-08-2011 17:05, Rainer Schuetze wrote:
>
>
> On 26.08.2011 09:58, Alex Rønne Petersen wrote:
>> On 26-08-2011 09:20, Rainer Schuetze wrote:
>>>
>>>
>>> On 25.08.2011 15:34, Alex Rønne Petersen wrote:
>>>> On 25-08-2011 09:28, Rainer Schuetze wrote:
>>>>> Hi,
>>>>>
>>>>> I'd like to announce the release of a new version of Visual D:
>>>>>
>>>>> 2011-08-25 Version 0.3.26
>>>>> [...]
>>>>
>>>> One question:
>>>>
>>>>> * fixed bad indentation of first contract
>>>>
>>>> What exactly does this fix? Can you give an example?
>>>
>>> reindenting a function with contracts used to produce something like
>>> this:
>>>
>>> int foo(int x)
>>> in
>>> {
>>> assert(x > 0);
>>> }
>>> body
>>> {
>>> return -x;
>>> }
>>>
>>> Now, the in contract is aligned with the function declaration and the
>>> body:
>>>
>>>
>>> int foo(int x)
>>> in
>>> {
>>> assert(x > 0);
>>> }
>>> body
>>> {
>>> return -x;
>>> }
>>
>> Oh, great! It seems that it still happens while you type out the
>> function, though. Can anything be done about that?
>>
>> - Alex
>
> I didn't think of that.
>
> Currently, the line is reindented if you type '{' or '}' as the first
> non-space on the line. This needs to be extended to "in", "out" and
> "body" without getting annoying. I'll see what can be done.

Great, thanks!

- Alex


More information about the Digitalmars-d-ide mailing list