Skip to content

transform dropargs -- whole argument list is dropped when having fewer arguments #675

@adamkardos

Description

@adamkardos

Hello,

I bumped into this: whenever I want to use transform with dropargs and it is applied on a function
with fewer arguments than the indicated range to drop the whole argument list disappears.

MWE:

cfunction f, g, h;
symbols a,b,c;

local F = f(a) + g(a, b) + h(a, b, c);

transform,f,dropargs(2,last);
transform,g,dropargs(2,last);
transform,h,dropargs(2,last);

print +ss;
.end

this produces:

  F =
       +
         f
       +
         g(a)
       +
         h(a)
      ;

I am using: 2073865

Thanks so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions