Code center > Suggestions

A small idea to help make brainy bots

<< < (2/4) > >>

Numsgil:

--- Quote ---It's an interesting idea.  I have a * operator that I've been working on that returns the value of the memory location pointed to by the top value on the stack.

So you could do *20 * to get the memory location *20 is pointing to.
--- End quote ---
And didn't I just say this?

Botsareus:
I gess I have to this evey time:

cond
start
*20 * *12 store
*30 * *13 store
stop
cond
*12
*13
>
start
*60 *80 store
stop

genes are checked in order correct?

Numsgil:
I wish you'd use custom labels.  All these *numbers makes my head hurt.

Genes are executed linearly at the moment, yes.  In the future, it'll change so that the genes won't be able to tell who executed first or last except by passing values along in the stack.

Light:
PY I think he wants *.20 to read the value of an address that is stored in *20, so if *20 has 30 stored in it, *.20 would read the value in address 30.

Hopefully Ive got the right end of tthe stick

PurpleYouko:
In that case **20 would make more sense since the dot is only used as a prefix for a text name so that the parser can associate the actual number with it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version