ID:134320
Nov 9 2006, 9:30 am
|
|
It'd be nice if we could get a simple change in Read behavior, so that if it creates an atom it passes the name of the savefile to atom/New, or at least a variable showing that it was loaded.
|
Nov 9 2006, 9:56 am
|
|
You can do that yourself if you want. :)
|
In response to Jon88
|
|
I'm trying to read in a list, so it might actually fall under a category other than Read(). I'm trying to read in the contents list, so I guess it's actually the >> operator that I'd like to be changed, as opposed to Read. Anyways, the native implementation is probably faster, as the case usually tends to be.
|
In response to Audeuro
|
|
Audeuro wrote:
I'm trying to read in a list, so it might actually fall under a category other than Read(). I'm trying to read in the contents list, so I guess it's actually the >> operator that I'd like to be changed, as opposed to Read. Anyways, the native implementation is probably faster, as the case usually tends to be. Does >>-ing a list cause the datums inside to have Read() run on them automatically? (I'm not sure, but this might be the case) |
In response to Jon88
|
|
I did a bit of experimenting before I made this, and it calls New(), then it calls Read().
|
In response to Audeuro
|
|
Audeuro wrote:
I did a bit of experimenting before I made this, and it calls New(), then it calls Read(). Hence, you can definitely override Read() to do this. Lummox JR |