Ответ на сообщение «Re: [BUG] Being provided some equal recursive structures, equality operator never stops comparison», присланное в 17:34:55 23 августа 2010, Понедельник, отправитель Adrien "Axioplase" Piérard:
But in vim, you cannot use assignment in eval statemnts. You possibly can provide a workaround (as an edge case: you can dump varible into string using my yaml.vim plugin and then load it: YAML is capable of representing recursive data and my plugin is capable of loading it), but I do not know how to do this using only built-in functions. Текст сообщения: > > If I am not mistaking, ... means ``I already displayed this structure, so > > I do not want to display it for the second time''. Example: > > :let d={} > > :let l=[d, d] > > :echo l > > [{}, {...}] > > This makes possible echoing recursive data structures, like the one that > > causes > > In such a case, it would be better to use a flattened representation > of cyclic data. > For example, if you would excuse my Lisp, > > (define x (cons 'foo 'bar)) ;; create a pair > (set-cdr! x x) ;; let the second element be the pair itself > (print x) ;; gives "#1=(foo . #1#)" > > The good thing is that you can even read it back! > > P!
signature.asc
Description: This is a digitally signed message part.