[OT] Spaces/tabs (Was: simple display (from: GUI library for D))

spir denis.spir at gmail.com
Tue Apr 12 14:37:03 PDT 2011


On 04/12/2011 10:08 PM, Nick Sabalausky wrote:
> ""Jérôme M. Berger""<jeberger at free.fr>  wrote in message
> news:io2396$1nuo$1 at digitalmars.com...
>> spir wrote:
>>>
>>> A drawback is one cannot directly have different indent levels, for
>>> instance to indent collection contents more, or less, than blocks of
>>> code. This can also be considered an advantage; and is simply solved by
>>> using... spaces ;-)
>>>
>>> void f () {
>>>   ->  while (true) {
>>>   ->   ->  table = [
>>>   ->   ->  .."aaa" : 1,
>>>   ->   ->  .."bbb" : 2,
>>>   ->   ->  .."ccc" : 3,
>>>   ->   ->  ];
>>>   ->   ->  auto a = this(table);
>>>   ->   ->  if (! a) break;
>>>   ->  }
>>> }
>>>
>>> (yes, the example is stupid)
>>>
>> Unfortunately, most editors are completely unable to handle this
>> example properly: sure they will *display* it fine, but they will
>> not allow you to *enter* it right (especially if you need more
>> spaces for alignment than the tab size).
>>
>
> That's unfortunately true.

Strange... did not know that, but I have only used geany for a while already.

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list