![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
new class Animal; new field String Animal.name; new field int Animal.age; bob = new Animal; bob.name = "Robert The Tiger" bob.age = 25; new field String Animal.eyeColor; bob.eyeColor = "blue"; |
#2
| |||
| |||
|
|
I'm looking for an interactive, interpreted object oriented database or language. I have searched vigilantly, but I can't find anything that comes close to my vision. In it's simplest form, I would guess that it could interpret source code like this from a console/interpretter: new class Animal; new field String Animal.name; new field int Animal.age; bob = new Animal; bob.name = "Robert The Tiger" bob.age = 25; new field String Animal.eyeColor; bob.eyeColor = "blue"; ... etc ... Of course, it would be nice to be able to save this workspace to a file, etc, and have programmatic constructs. It would be very nice if this system had a visual front end ( to edit objects and classes as trees ), but this isn't necessary. Does this ring any bells? Does anything like this exist? I know there are object oriented databases (which seem to be only useful when directly called from a programming language like java)... But I'm looking for something more like a productivity tool (I could see it being as useful as a spreadsheet). Any help will be greatly appreciated. |
#3
| |||
| |||
|
|
I'm looking for an interactive, interpreted object oriented database or language. try Python, freely available on most platforms, already installed on OS/X |
|
is interpreter prompt class Animal: .... name="" |
|
bob = Animal() bob.name = "Robert the Tiger" bob.age = 25 bob.eyeColor = "blue" # note that I didn't need to explicitly create this new attribute, just assigned it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |