Post Reply 
newRPL: Making RPL more readable
12-22-2016, 04:58 PM (This post was last modified: 12-22-2016 05:10 PM by compsystems.)
Post: #28
RE: newRPL: Making RPL more readable
(12-20-2016 01:11 PM)compsystems Wrote:  Hi, one of the problems of the hp48/50 series libraries is that they use an identifier number
And if two users create a library with the same number, there will be a conflict, my proposal is to use the name of the library as reference
> And now you have name conflicts,
It is better to know that there is conflict by name than by number

See full example below
PHP Code:
DIR
  PRG1 ID1 
ID1 FROM LIB #1000 OR #1001?

  
PRG2 ID2 ID2 FROM LIB #1000 OR #1001?

  
PRG3 ID3 ID2 FROM LIB #1000 OR #1001?
END 

> significant slowdown if every command has to be searched by library name,.
From user RPL I think it is the only solution to know that ID belongs to a certain library

@ CURRENT RPL FOR LIBS AND LIBS
PHP Code:
@LIBRARY #1000
DIR
  ID1 obj1

  ID2 obj2

  ID3 obj3

  ID4 obj4

  $VISIBLE 
ID1ID2ID3 }

  
$HIDDEN ID4 }

  
$ROMID 1000
  $CONFIG « 1000 ATTACH »

  $TITLE 
"LIB1NAME"
END CRLIB

@LIBRARY #1001
DIR
  ID1 obj1

  ID2 obj2

  ID3 obj3

  ID4 obj4

  $VISIBLE 
ID1ID2ID3 }

  
$HIDDEN ID4 }

  
$ROMID 1001
  $CONFIG « 1001 ATTACH »

  $TITLE 
"LIB2NAME"
END CRLIB

------------------------------
DIR
  PRG1 ID1 
ID1 FROM LIB #1000 OR #1001?

  
PRG2 ID2 ID2 FROM LIB #1000 OR #1001?

  
PRG3 ID3 ID2 FROM LIB #1000 OR #1001?
END

------------------------------
@NEW 
RPL (MY IDEA)
DIRECTORY
  PRG1 LIB1NAME
.ID1 ID1 FROM LIB #1000

  
PRG2 LIB1NAME.ID1 ID1 FROM LIB #1001

  
PRG3 LIB2NAME.ID2 ID2 FROM LIB #1001
END_DIR

LIB1NAME
LIBRARY
  ID1 obj1

  ID2 obj2

  ID3 obj3

  ID4 obj4

  HIDEVAR ID4 
END_LIBRARY

LIB2NAME
LIBRARY
  ID1 obj1

  ID2 obj2

  ID3 obj3

  ID4 obj4

  HIDEVAR ID4 
END_LIBRARY 

Any better idea?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Making RPL more readable - Han - 12-02-2016, 12:39 PM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 07:37 AM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 10:12 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM
RE: newRPL: Making RPL more readable - compsystems - 12-22-2016 04:58 PM



User(s) browsing this thread: 1 Guest(s)