HP Forums
50G why does <<time>> dissapear - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: 50G why does <<time>> dissapear (/thread-1556.html)



50G why does <<time>> dissapear - CosmicTruth - 06-06-2014 06:05 PM

if I press the time softkey i get the current time, if i write a program like <<time>> and run it i don't get the time on the stack. even if i put 'time' on the stack and evaluate it still no time on the stack. i bet its a simple thing but i'm baffeled by the dissapearing <<time>>. what function on a 50G can I program that will give a time number on the stack? I heard Carl Sagan say this may happens when we are entering a black hole... Sad


RE: 50G why does <<time>> dissapear - Guenter Schink - 06-06-2014 06:23 PM

(06-06-2014 06:05 PM)CosmicTruth Wrote:  if I press the time softkey i get the current time, if i write a program like <<time>> and run it i don't get the time on the stack. even if i put 'time' on the stack and evaluate it still no time on the stack. i bet its a simple thing but i'm baffeled by the dissapearing <<time>>. what function on a 50G can I program that will give a time number on the stack? I heard Carl Sagan say this may happens when we are entering a black hole... Sad

Use capital letters. TIME works.

HTH Günter


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-06-2014 06:29 PM

(06-06-2014 06:23 PM)Guenter Schink Wrote:  Use capital letters. TIME works.

HTH Günter

not for me, even if i just type in TIME on the command line the command just dissapears and no result. same thing in <<TIME>> or 'TIME'.


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-06-2014 06:44 PM

To answer my own question:
Art did you make a TIME directory? if so the function TIME wont work unless you press the softkey dummy! rename the TIME directory to something like TIMEPROGS or something then the time function will begin to work again.


RE: 50G why does <<time>> dissapear - HP67 - 06-07-2014 06:44 PM

I'm surprised it lets you do that. I was prevented from creating directories several times when I picked names that clashed with builtin commands.


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-07-2014 07:46 PM

true dat... but it will let me make a directory named time. and the behavior is strange, it seems that once the time directory is created any program made after that time that uses the time function will just jump you to the time directory, but programs made before the directory was created work like normal.


RE: 50G why does <<time>> dissapear - Egan Ford - 06-08-2014 03:04 AM

(06-06-2014 06:05 PM)CosmicTruth Wrote:  i bet its a simple thing but i'm baffeled by the dissapearing <<time>>.

...

I heard Carl Sagan say this may happens when we are entering a black hole... Sad

Or if you are having too much fun. Are you having fun? Too much fun?


RE: 50G why does <<time>> dissapear - Marcus von Cube - 06-08-2014 08:36 AM

(06-07-2014 07:46 PM)CosmicTruth Wrote:  true dat... but it will let me make a directory named time. and the behavior is strange, it seems that once the time directory is created any program made after that time that uses the time function will just jump you to the time directory, but programs made before the directory was created work like normal.

RPL programs are 'compiled' in some way. This should explain it. The TIME token is replaced by a SysRPL call in a program as long as there is no user object with the same name.


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-08-2014 12:49 PM

(06-08-2014 08:36 AM)Marcus von Cube Wrote:  RPL programs are 'compiled' in some way. This should explain it. The TIME token is replaced by a SysRPL call in a program as long as there is no user object with the same name.

So the old programs keep working, but new programs go to the time directory.
I knew that dummy Carl Sagan was wrong, it has nothing to do with black holes! Angry


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-08-2014 01:02 PM

(06-08-2014 03:04 AM)Egan Ford Wrote:  
(06-06-2014 06:05 PM)CosmicTruth Wrote:  i bet its a simple thing but i'm baffeled by the dissapearing <<time>>.

...

I heard Carl Sagan say this may happens when we are entering a black hole... Sad

Or if you are having too much fun. Are you having fun? Too much fun?

Try as I may, I don't think I will ever have "too much fun", Lets keep experimenting!

now this is solved we can take on «E≠MC^²»


RE: 50G why does <<time>> dissapear - Thomas Klemm - 06-08-2014 07:24 PM

(06-08-2014 08:36 AM)Marcus von Cube Wrote:  The TIME token is replaced by a SysRPL call in a program as long as there is no user object with the same name.

How could that ever happen? I can use TIME as a local variable:
Code:
\<< \-> TIME
  \<< TIME SQ
  \>>
\>>
But I can't create a global variable or directory with this name.

Cheers
Thomas


RE: 50G why does <<time>> dissapear - CosmicTruth - 06-09-2014 01:03 AM

I created the directory with LS files, new, name: TIME, check directory,
So try it using the files function.