Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #907
| From | Michael <michaelremerton@gmail.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: BBC BASIC, EVAL and PROC |
| Date | 2011-10-23 12:50 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <17213532.387.1319399427579.JavaMail.geo-discussion-forums@yqoo7> (permalink) |
| References | <2944631.819.1319307324460.JavaMail.geo-discussion-forums@yqbl36> <mpro.lthf260531xnk01ej.news@stevefryatt.org.uk> <111023195504@arcade.demon.co.uk> |
> > > I am attempting to set-up a timer system.
>
> "set-up" is a noun. The verb you are looking for is "set up".
My bad!
>
> > > [ OP wants to do something like EVAL("PROC"+name$) ]
> > > How would I go about getting this to work without setting the PROCs to
> > > FNs, or maybe a much better way of doing this?
> >
> > You can't (unless you're using BB4W, before the usual suspect jumps in).
>
> or ARM BBC BASIC with BB4W extensions:
> http://mdfs.net/bbcbasic/RISCOS/BasPlus.htm
> but your application would have to specifically loaded.
Looking into this now :@)
>
> You'd do something like:
>
> my_routine%=^PROCroutine_to_call
> ...
> PROC(my_routine%)
>
> but as pointed out, a CASE structure will probably make for code
> that is easier to read and maintain:
>
> CASE action% OF
> WHEN 1:PROCouch
> WHEN 2:PROCthing
> WHEN 3:PROCfobar
> ENDCASE
>
> --
> J.G.Harston - j...@mdfs.net - mdfs.net/jgh
> /* Real programmers don't use comments. */
Cheers! :@)
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
BBC BASIC, EVAL and PROC Michael <michaelremerton@gmail.com> - 2011-10-22 11:15 -0700
Re: BBC BASIC, EVAL and PROC Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-22 20:20 +0100
Re: BBC BASIC, EVAL and PROC Michael <michaelremerton@gmail.com> - 2011-10-22 12:54 -0700
Re: BBC BASIC, EVAL and PROC Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-23 18:44 +0100
Re: BBC BASIC, EVAL and PROC Michael <michaelremerton@gmail.com> - 2011-10-23 12:45 -0700
Re: BBC BASIC, EVAL and PROC Gavin Wraith <gavin@wra1th.plus.com> - 2011-10-24 10:07 +0100
Re: BBC BASIC, EVAL and PROC jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-10-23 19:13 +0100
Re: BBC BASIC, EVAL and PROC Michael <michaelremerton@gmail.com> - 2011-10-23 12:50 -0700
Re: BBC BASIC, EVAL and PROC Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-23 22:00 +0100
Re: BBC BASIC, EVAL and PROC Martin <News03@avisoft.f9.co.uk> - 2011-10-24 18:23 +0100
Re: BBC BASIC, EVAL and PROC Steve Drain <steve@kappa.me.uk> - 2011-10-24 13:34 +0100
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-25 07:34 +0200
Re: BBC BASIC, EVAL and PROC Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-10-25 18:14 +0100
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-26 06:32 +0200
Re: BBC BASIC, EVAL and PROC druck <news@druck.org.uk> - 2011-10-26 10:51 +0100
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-26 19:15 +0200
Re: BBC BASIC, EVAL and PROC "Ste (news)" <steve@revi11.plus.com> - 2011-10-26 15:09 +0100
Re: BBC BASIC, EVAL and PROC "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-10-26 16:36 +0200
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-26 19:18 +0200
Re: BBC BASIC, EVAL and PROC Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-10-26 17:26 +0100
Re: BBC BASIC, EVAL and PROC "Ste (news)" <steve@revi11.plus.com> - 2011-10-26 21:07 +0100
Re: BBC BASIC, EVAL and PROC Gerph <gerph@gerph.org> - 2011-10-25 03:28 -0700
Re: BBC BASIC, EVAL and PROC Ron <beeb@woosh.co.nz> - 2011-10-27 11:52 +1300
Re: BBC BASIC, EVAL and PROC Theo Markettos <theom+news@chiark.greenend.org.uk> - 2011-10-27 12:00 +0100
Re: BBC BASIC, EVAL and PROC Ron <beeb@woosh.co.nz> - 2011-10-28 01:38 +1300
Re: BBC BASIC, EVAL and PROC Theo Markettos <theom+news@chiark.greenend.org.uk> - 2011-10-27 14:02 +0100
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-27 18:24 +0200
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-27 07:42 +0200
Re: BBC BASIC, EVAL and PROC Steve Drain <steve@kappa.me.uk> - 2011-11-03 13:57 +0000
Re: BBC BASIC, EVAL and PROC Tony van der Hoff <news1106@vanderhoff.org> - 2011-11-03 15:28 +0100
Re: BBC BASIC, EVAL and PROC Steve Drain <steve@kappa.me.uk> - 2011-11-03 16:00 +0000
Re: BBC BASIC, EVAL and PROC Gerph <gerph@gerph.org> - 2011-11-04 16:22 -0700
Re: BBC BASIC, EVAL and PROC Steve Drain <steve@kappa.me.uk> - 2011-11-05 14:51 +0000
Re: BBC BASIC, EVAL and PROC Steve Drain <steve@kappa.me.uk> - 2011-11-06 13:25 +0000
Re: BBC BASIC, EVAL and PROC Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-06 19:35 +0100
Re: BBC BASIC, EVAL and PROC Alan Adams <alan@adamshome.org.uk> - 2011-11-06 18:53 +0000
Re: BBC BASIC, EVAL and PROC Gavin Wraith <gavin@wra1th.plus.com> - 2011-11-07 14:09 +0000
csiph-web