lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: not-so-ancient flags


From: Werner LEMBERG
Subject: Re: [PATCH] Re: not-so-ancient flags
Date: Sat, 26 Jul 2008 07:31:16 +0200 (CEST)

> The other thing that's bothering me with my patch (not your changes)
> is that in the function create_straight_flag_char I need both
> straight_upflag_length and straight_upflag_length#.  I haven't found
> a way to pass just one of them and still be able to use the
> hashed/unhashed variable in that function.  So, currently I pass
> both (as len and lenhash parameter) to it, which seems kind of
> redundant.  Do you know any solution to this or do I really have
> pass both the hashed and the unhashed variable to that function?

Assuming you already have `foo' and `foo#'.  Then you could do this:

  def myfunc (expr foo) = 
    bar = foo;
    define_pixels (bar);
    ...

or a similar `define_XXX_pixels' variant to get `bar' and `bar#'.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]