This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PrinzJuliano's profile picture

Need help: String to object & other q

Started by PrinzJuliano, 12 May 2013 - 02:03 PM
PrinzJuliano #1
Posted 12 May 2013 - 04:03 PM
I'm working on a permissions system and you know nodes are like:

<1>.<2>.<3>.<4> …
but also
<1>.*

and now i want to look for each part (which i've spliten) if the user has the .* permissions and at the end the complete node…

2nd q:

How can i convert a String to an object:


-- args[1] is e.g. "Sam"

os.loadAPI(args[1]) -- load Sam for password and permissions
-- now i need to know the argument but ...

Thank u guys
Sammich Lord #2
Posted 12 May 2013 - 04:21 PM
Can you rephrase the questions? I have asked multiple people on IRC and none of them can understand the questions.
PrinzJuliano #3
Posted 16 May 2013 - 02:15 PM
I need to look for every item in a list whether it fits to a format like: <priveous items>.<item>.* . And the last item of the list should be handled without *.

And: Q2: I have an unknown filename(String) to load as API and i need to use this api, but how!