Trying to use the demo just through the script editor. Pretty buggy editor, guess that's why I don't use editors that come with stuff most of the time. Anyway, I wanted to try and get familiar with extended methods, so I looked at the documentation, which already confused me because I think it by itself is confused, and doesn't know what to open or close the function/method with:
So I wrote the following using Function first, assuming that End Function probably means 1) it's a function and 2) this is probably just syntactic sugar detected by the compiler/interpreter/what have you (since it doesn't say). This is wrong, it's Method. Confusing. In addition to that, the language documentation does not explain the little !flags at all (note: language, not the other thing, which should be merged so it makes sense), which lead me to believe that you hated explicitly declaring variables and momentarily caused me to shake my fist feebly at the ceiling.
The editor gives me this:
I assure you, editor, this file does exist. You happen to be modifying it! O_o But fine, I can accept that, default editors hate me, fine, be that way.
So I went to the command line, and thankfully after about 40 minutes of fiddling with your bloody evil bvmcmd.exe (which, by the way, refers me to bvmcc.exe at times, which clearly does not exist) and its habit of not accepting absolute paths with -m ("C:\...\woop.bsl" isn't accepted, and apparently will only allow me to use "woop.bsl," which leads me to believe that your editor does not know how to use the compiler or your compiler does not know how to determine whether or not a path is relative).
That aside, wonderful language and I'll probably buy it. But good god man, the editor!
Note: Editing this post as I go.
Reading the documentation off your site is painful. Extremely painful.
Do you have a grammar for the language? (Just curious. Wouldn't be of any actual use.)
' Extension method (defined outside TEntity) Method Move(Self:TEntity, x:Int, y:Int) Self.x = x Self.y = y End Function
So I wrote the following using Function first, assuming that End Function probably means 1) it's a function and 2) this is probably just syntactic sugar detected by the compiler/interpreter/what have you (since it doesn't say). This is wrong, it's Method. Confusing. In addition to that, the language documentation does not explain the little !flags at all (note: language, not the other thing, which should be merged so it makes sense), which lead me to believe that you hated explicitly declaring variables and momentarily caused me to shake my fist feebly at the ceiling.
Type CColor Field r,g,b End Type Method SetColor(Self:CColor, nr,ng,nb) Self.r = nr Self.g = ng Self.b = nb End Method Local c:CColor = New CColor c.SetColor( 5, 10, 15 ) Print c.r Print c.g Print c.b
The editor gives me this:
Error: Script file 'C:/Users/Noel/Documents/woop.bsl', not found
I assure you, editor, this file does exist. You happen to be modifying it! O_o But fine, I can accept that, default editors hate me, fine, be that way.
So I went to the command line, and thankfully after about 40 minutes of fiddling with your bloody evil bvmcmd.exe (which, by the way, refers me to bvmcc.exe at times, which clearly does not exist) and its habit of not accepting absolute paths with -m ("C:\...\woop.bsl" isn't accepted, and apparently will only allow me to use "woop.bsl," which leads me to believe that your editor does not know how to use the compiler or your compiler does not know how to determine whether or not a path is relative).
That aside, wonderful language and I'll probably buy it. But good god man, the editor!
Note: Editing this post as I go.
Reading the documentation off your site is painful. Extremely painful.
Do you have a grammar for the language? (Just curious. Wouldn't be of any actual use.)