🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Jim Robinson Wed, 12 Mar 1997 00:00
slrn macro question
#32086
Author: Jim Robinson
Date: Wed, 12 Mar 1997 00:00
29 lines
1073 bytes
Is is possible to substitute a user defined function for an intrinsic
function, yet still have the intrinsic function available for calling by
the user defined function?

E.g. I want to write my own version of 'header_down', but I want to call
the real 'header_down' in my version :

define header_down()
{
	blah
	blah
	invoke real header_down
	blah
	blah
}

Is there a way to do this?

FWIW, I am using slrn09.3.2

Thanks


-- 
Jim Robinson
robinson@mdd.comm.mot.com

Re: slrn macro question
#32129
Author: John E. Davis
Date: Fri, 14 Mar 1997 00:00
13 lines
902 bytes
On 12 Mar 1997 17:59:16 GMT, Jim Robinson <robinson@see-my-sig.com>
wrote:
>Is is possible to substitute a user defined function for an intrinsic
>function, yet still have the intrinsic function available for calling by
>the user defined function?

No. The language does not permit the re-definition of intrinsic
functions.

--John

Re: slrn macro question
#32218
Author: Michael Mulvaney
Date: Wed, 19 Mar 1997 00:00
33 lines
1231 bytes
On 12 Mar 1997 17:59:16 GMT, Jim Robinson <robinson@see-my-sig.com> wrote:
>E.g. I want to write my own version of 'header_down', but I want to call
>the real 'header_down' in my version :
>
>define header_down()
>{
>	blah
>	blah
>	invoke real header_down
>	blah
>	blah
>}

I don't know much about macro's in slrn, but couldn't you just do this:

define my_header_down()
{
	blah
	header_down()
	blah
}

Plus, its more efficient because I only needed 2 blah lines, instead
of 4.

--
Michael Mulvaney
  Krusty: Don't blame me...
  Krusty+Kids: I didn't do it!
  -- Words to live by, ``Krusty Gets Busted''

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads