Syntax question

Discuss the Firewing language

Syntax question

Postby johngb » Wed Mar 02, 2016 10:00 am

Does y -= 1 mean y = y - 1
and similarly
does y += x mean y = y + x

Not seen this syntax before.
johngb
 
Posts: 19
Joined: Thu Dec 25, 2014 12:00 pm

Re: Syntax question

Postby Jerry Messina » Wed Mar 02, 2016 10:52 am

Yes, that's how they work. The assignment operators are from VB.net (a few other languages have them also).
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: Syntax question

Postby David John Barker » Wed Mar 02, 2016 4:08 pm

A bit more information can be found here

http://www.tutorialspoint.com/vb.net/vb.net_operators.htm
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x