Hi again!
I hope I'm not posting in a wrong place ^_^"...
Btw, I need your suggestion to my basic like programming language.
It has two features called Class Aliases and Alias for subtitution.
Class Aliases are just like toString() in Java but they can be used for any Class, not just String.
For instance:
And the second is Alias for subtitution, behaves just like #define in C, but a little bit more simple.Code:Class Apple Alias Apple As String Return "I'm an Apple!" <-- LOL End Alias Alias Apple As Number Return 10 ^-- Just for example End Alias /* Syntax: Alias ClassName As AnotherClassName . . Return objectOfAnotherClassName End Alias */ End Class Dim apple As New Apple Console.printLn apple <-- 0x???? the object pointer Console.printLn apple As String <-- I'm an Apple! Console.printLn apple As Number <-- 10
Syntax:
Example:Code:Alias new_name As name
And then...Code:Alias debug As Console.printLn . . debug "ERROR? " & errorNumber
Will you confused to a code like above?Code:Class Apple Alias print As Console.printLn Alias Apple As String print "Test!" Return "I'm an Apple!" End Alias Alias Apple As Number Return 10 End Alias End Class
Mmm... maybe there is another way to implement this one?
Thanks in advance.



LinkBack URL
About LinkBacks




