Jump to content




My own conditional statements


  • You cannot reply to this topic
5 replies to this topic

#1 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 07 March 2014 - 07:46 PM

Hello! Today, I was wondering if there is any way to make your own statements (If, For, And, etc.)
So, is there any way to?

If you need more info or do not understand, fell free to post and I will give some more info!

#2 Gleeb

  • New Members
  • 1 posts

Posted 07 March 2014 - 07:59 PM

Hey there. Interesting thought you've got there, but... what exactly are you hoping to achieve?

#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 07 March 2014 - 08:01 PM

What, exactly, are you asking? If you mean, "Is it possible to add new keywords to Lua?" then yes, it is possible. You can't do so from within Lua, of course, but it can be done.

#4 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 07 March 2014 - 08:24 PM

Yes, lyqd, you are correct. That is what I want to do. But how would I going about doing it?

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 07 March 2014 - 08:39 PM

You'd get the source code for a Lua interpreter and add the new keyword. It would probably be a large amount of work. I've never had the desire to do so, so that's all the direction I can really provide.

Why do you want a new keyword? What are you trying to accomplish? What keyword are you wanting to add to accomplish that task, and why?

#6 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 07 March 2014 - 08:41 PM

I saw the program CCPU and wondered if I could do something like that.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users