URL:
  <http://gna.org/bugs/?23922>

                 Summary: Reopening bug #22774 (insert_tag)
                 Project: Battle for Wesnoth
            Submitted by: tekelili
            Submitted on: lun 05 oct 2015 23:52:55 UTC
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.12
        Operating System: any

    _______________________________________________________

Details:

I have decided reopen my request as a bug report.

##Current behavior
    {CLEAR_VARIABLE nothing}
    [insert_tag]
        name=tag
        variable=nothing
    [/insert_tag]

    ##outcome
    [tag]
    [/tag]
    ##outcome


##Proposed behavior
    {CLEAR_VARIABLE nothing}
    [insert_tag]
        name=tag
        variable=nothing
    [/insert_tag]

    ##outcome
    ##outcome

I considere now current behavior a bug, because WML no longer support empty
[if] in 1.13 and this breaks add ons using [insert_tag] name=if over cleared
variables.

In my first request I pointed is nor a expected neither usefull behavior,
rather quite unconvienient. However I have realized conceptual reason for my
request:

[inser_tag] is an operation over arrays. Imo it can read as "append to code
this array". In other words, if we considere "code" as a pointer to where
[insert_tag] is used, I see it conceptually equivalent to this

[set_variables]
    mode=append
    name=code
    to_variable=my_array
[/set_variables]

As such should behave as [set_variables] and dont write empty tags when
executed over a cleared variable.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23922>

_______________________________________________
  Mensaje enviado vía/por Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to