|
| 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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
|
| 01 Nov 2015 06:47 PM |
| NULL,null are the equiv of nil. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 01 Nov 2015 07:17 PM |
| lord: NULL is not a keyword its in stdio |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Nov 2015 07:24 PM |
null = nil NULL = nil
Fixed.
local asd = NULL
if(asd == null)then print("Yeah") end |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 01 Nov 2015 07:26 PM |
| @notfruit: You forgot NaN. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2015 07:28 PM |
I wonder...
if(NaN == undefined) {
} |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
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 |
|
|
|
| 01 Nov 2015 10:53 PM |
| Nil and null aren't the same thing. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 03:44 PM |
| lordrambo: Correct you cant. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|