1. routine_id ??

What is the maximum number of routine_id's that can be used in a

  program. Could the routine ids start at 1 instead of zero this would

  seem more logical than a routine id of zero.

new topic     » topic index » view message » categorize

2. Re: routine_id ??

Bernie Ryan writes:
> What is the maximum number of routine_id's that can be
> used in a program.

Millions.
A new id number is produced for each routine that you
get the routine id for. A tiny amount of memory is consumed
in the process.

> Could the routine ids start at 1 instead of
> zero this would seem more logical than a routine id of zero.

Perhaps, but I'm not going to change it now.
Just add or subtract 1.

You can assume that routine id's will be small integers,
but don't assume that you will always get the same value
of routine id for a given routine. Things can change when
you add or delete code, or in a new release of Euphoria.

Regards,
     Rob Craig
     Rapid Deployment Software
     http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: routine_id ??

On Mon, 7 Feb 2000 13:17:17 -0500, Robert Craig <rds at ATTCANADA.NET> wrote:

>You can assume that routine id's will be small integers,
>but don't assume that you will always get the same value
>of routine id for a given routine. Things can change when
>you add or delete code, or in a new release of Euphoria.
>

  Rob:

     Can I assume that they will not change during run-time once I
     have requested one.

  Thanks
  Bernie

new topic     » goto parent     » topic index » view message » categorize

4. Re: routine_id ??

Bernie Ryan writes:

> Can I assume that they will not change during run-time once I
> have requested one.

Yes.

If you ask for the routine id multiple times on the same routine,
you will get the same number returned to you each time,
without consuming any extra memory.

Regards,
     Rob Craig
     Rapid Deployment Software
     http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

5. Re: routine_id ??

Thank You Rob
   Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu