Goshua Lament's Second Life Adventures

Read about what Goshua Lament does in the Masive Online Multiplayer Game know as Second Life

Tuesday, June 29, 2004

C++ and LSL

I've begun learning C++ programming. When I visited the LSL Wiki and read some example scripts, I realized how close LSL and C++ formatting are. This may not come as a surprise to most scripters in Second Life, but I'm fairly new to programming. My strong skill is working with images and graphics, not miles of code. Still, it's pretty cool to realize that what I learn from LSL can be easily applied to other, more widely used programming languages. What was your favorite early scripting discovery? As always, hit that comment button!

4 Comments:

At 7:36 AM, Goshua Lament said...

I've been playing some more and realized that the "foo loop" command is exactly the same as in C++. So are most of the other command. The Lindens must have used C++ as the base for LSL.

 
At 7:37 AM, Goshua Lament said...

This post has been removed by the author.

At 7:38 AM, Goshua Lament said...

Erm, I meant to say *for loop.*

 
At 12:54 PM, Grim Lupis said...

It's also the same as the for loop structure in Java, C#, and many other similar and/or related languages.

You'll find that logical constructs for most programming languages are similar. The only real difference most of the time is in the keywords you use to tell the compiler to do a specific thing.

 

Post a Comment

<< Home