Author Topic: EGSL Samples on bp.org  (Read 2138 times)

Tomaaz

  • Guest
EGSL Samples on bp.org
« on: May 23, 2013, 09:12:25 AM »
Rick3137 have started an interesting topic that should have been started here as well. Could anyone suggest it to the author (I'm banned there). Thanx!

Rick3137

  • Guest
Re: EGSL Samples on bp.org
« Reply #1 on: June 20, 2013, 01:08:54 PM »
 Hey Tomaaz;
     There are so many programming languages on Internet now, that I can't resist the idea of writing one program over and over and putting it everywhere. Lets see Google try and stop me.  They think they own the Internet.

Bereb

  • Guest
Re: EGSL Samples on bp.org
« Reply #2 on: September 14, 2013, 09:34:12 PM »
Very interesting  :)

May I point something out. In your samples, I saw you created functions for radian and degree conversions.
Do you know those functions already exist in Lua, so in EGSL too ? math.rad and math.deg (see here)
You may declare them in this way, for instance :

Code: [Select]
local rad, deg = math.rad, math.deg
Using local variables or functions allows you to gain some speed in your scripts (see here)

Unless you would rather write your programs in "pure EGSL"  ;)

Regards
« Last Edit: September 14, 2013, 09:39:55 PM by Bereb »