Skip to contentSkip to conversation

Menus and Functions

DISCUSSION Kevin Lacquement 2 participants 3 messages Mar 2, 2009 – Mar 4, 2009

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings all,

I was browsing through the recent SVN head, and noticed that functions and menu items are implemented separately. I was wondering if there's actually a reason for that.

It seems to me that a menu entry is nothing more than a function that, instead of being referred to by a function name, is referred to by a menu title.

Would it be difficult to re-implement menu entries to hold a function pointer? This should simplify the scripting engine, as it can all be put into one place.

Cheers,
Kevin
- --
Sic non confunctus, non reficiat.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmsMfEACgkQASQ0HFKCohNQYACfSs1SNshxsp/nD8S/yqZL3/f2 kVwAoIG4JEJIXp2Oqc4pTAHytfvdkusb
=ANIt
-----END PGP SIGNATURE-----

#1 lore raw

Hi,

Quoted 7 lines · Kevin Lacquement

I was browsing through the recent SVN head, and noticed that functions and menu items are implemented separately. I was wondering if there's actually a reason for that.

It seems to me that a menu entry is nothing more than a function that, instead of being referred to by a function name, is referred to by a menu title.

This was on purpose. My idea was that menu entries can be generated in a macro like fashion.

--
Marco

#2 lore raw
Quoted 3 lines · Marco Gerards

Hi,

Kevin Lacquement <[email protected]> writes:

[...]

Quoted 7 lines
Quoted 4 lines

It seems to me that a menu entry is nothing more than a function that, instead of being referred to by a function name, is referred to by a menu title.

This was on purpose. My idea was that menu entries can be generated in a macro like fashion.

OK, it just seemed odd to me, but that makes sense. I was looking at adding some of the missing shell features (like loops) and came across that separation.

Signature · 1 line
Sic non confunctus, non reficiat.