Re: RosettaCode

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
PeteE said...

[*] Or instead of a routine-id, something that can be passed to call_func() that works. Here's my solution:

In 4.0, you can do the override, etc, like this: <snip>

There's no need for the old_* routine, as you can use the built-in "eu" namespace.

Matt

Oh, ok. I guess I missed that 4.0 change. But you got the idea.

Now the only problem is that all the library functions that accept a routine-id expect it to be an integer, and will exhibit type-check failures when you pass a sequence of composed routine-ids. It should be fixable using Jim's negative routine-id method to map to composed routine-ids in the overriding call_func function.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu