generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Isn't the term "null" for java?

Previous Thread :: Next Thread 
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
01 Nov 2015 06:22 PM
Just wondering, I saw "NULL"
Exact line:
"Something unexpectedly tried to set the parent of LocalScript to NULL while trying to set the parent of LocalScript. Current parent is Frame."
Correct me;
Roblox could possibly be slightly Java xP
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
01 Nov 2015 06:26 PM
No ROBLOX is C based, which would be a reason for null. Null is short for nullified, which means non-existent.
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
01 Nov 2015 06:26 PM
Thanks.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
01 Nov 2015 06:36 PM
Null is not short for nullified, rather it is a word in it's own right. The Java keyword for null is simply "null". The C++ keyword for null is "NULL". The ROBLOX Engine does not employ the use of Java.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
01 Nov 2015 06:38 PM
I meant to say the _C/C++_ keyword for null is "NULL". Also that the ROBLOX engine is written in C++. The Lua interpreter is in C however.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
01 Nov 2015 06:47 PM
NULL,null are the equiv of nil.
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
01 Nov 2015 07:03 PM
fun fact:

JavaScript, or rather ECMAScript, was designed in 10 days and thrown onto netscape. That's why it has void, null, and undefined.
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
01 Nov 2015 07:17 PM
lord: NULL is not a keyword its in stdio
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
01 Nov 2015 07:23 PM
I wish Java 9 was out. I want some aspects of C++ to be in Java. Such as structs and whatever this is called:

int a = 0;
int b = 0;
void example(int c, int d) : a(c), b(d) {

}

I also want Java to inherit the custom operator/overload stuff. TBH Lua should have custom operators and not default operators (only occlusion are +-/* and %)
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
01 Nov 2015 07:24 PM
null = nil
NULL = nil

Fixed.

local asd = NULL

if(asd == null)then
print("Yeah")
end
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
01 Nov 2015 07:26 PM
@notfruit: You forgot NaN.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
01 Nov 2015 07:28 PM
I wonder...

if(NaN == undefined) {

}
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
01 Nov 2015 07:33 PM
No. Undefined becomes NaN though when used in a numeric context (EX: 5 + undefined = NaN) though.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2015 08:10 PM
NaN != NaN :)
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
01 Nov 2015 08:27 PM
cnt no, you saw the page
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2015 09:02 PM
what?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
01 Nov 2015 09:56 PM
heavylifterman192: if that were true you wouldn't be able to use NULL without including stdio; you can.
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
01 Nov 2015 10:53 PM
Nil and null aren't the same thing.
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
02 Nov 2015 03:44 PM
lordrambo: Correct you cant.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
02 Nov 2015 08:31 PM
You can, in almost all cases NULL is just syntax sugar for 0. Multiple libraries (if not a bunch) will do that for you.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Nov 2015 08:43 PM
NULL is not a built-in "constant" in C, but yes it's part of libraries and generally has a value of 0.
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
02 Nov 2015 09:38 PM
lordrambo,cnt: Incorrect, Its just stdio.h Wether or not its being included by other header's such as windows.h maybe..
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
02 Nov 2015 09:47 PM
heavylifterman192: Incorrect, comes with iostream which does not include cstdio, but that's not even worth arguing since you could write your own easily. Stop being condescending, it's not cool nor does it make you look "smarter" than anyone.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Nov 2015 09:50 PM
No there are many libraries that have their own NULL definitions.
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
04 Nov 2015 07:29 PM
^ True
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image