Date: Tue, 20 May 2003 21:56:43 +0200
To: sc-dev@create.ucsb.edu
From: c-k-h-r-o-m-a-s-c-h-i-n-e-s <c-k-h-r-o-m-a-c-h-i-n-e@chromaticspaceandworld.com>
Subject: Re: [sc-dev] File.sc

"

------

var d;
d = File.new("test","r");
d.contents;
// posts the content of the file in the postwindow
// i would prefer that to happen through : d.contents.postln;

------

var d;
d = File.new("test","r");
d.contents;
"somestring";
// posts only "somestring"

------

var d;
d = File.new("test","r");
d.contents;
"somestring";
d.readAllString;
// posts nothing

------

var d;
d = File.new("test","r");
d.contents;
"somestring";
d.readAllString.postln;
// posts nothing

------

var d;
d = File.new("test","r");
d.contents.postln; // gets posted
"somestring".postln; // gets posted
d.readAllString.postln; // doesn't get posted

------

var d;
d = File.new("test3","r");
d.contents; // doesn't get posted
"somestring"; // doesn't get posted
d.readAllString.postln; // doesn't get posted
"otherstring"; // gets posted

------

"

interlichtspielhaus




Am Sonntag, 18.05.03 um 17:45 Uhr schrieb James McCartney:

>
> You're right .contents doesn't work. I'll change it.
>
> On Sunday, May 18, 2003, at 05:54 AM, c-k-h-r-o-m-a-s-c-h-i-n-e-s 
> wrote:
>
>>
>> hi
>>
>> in File.sc :
>>
>> sc2 :
>>
>> 	contents {
>> 		^this.readAllString;
>> 	}
>>
>>
>> sc3 :
>>
>> 	contents {
>> 		^this.read(String.new(this.length));
>> 	}
>>
>>
>> why this different implementation ?
>> my source-reading gets stuck at the primitives
>>
>> could anybody explain ?
>>
>>
>> i have sc2-classes that rely on "contents"
>> and stop functioning in sc3
>>
>>
>> thanks
>> jmcs2
>>
>> _______________________________________________
>> sc-dev mailing list
>> sc-dev@create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-dev
>>
>>
> -- 
> --- james mccartney   james@audiosynth.com   
> <http://www.audiosynth.com>
> SuperCollider - a real time audio synthesis programming language for 
> MacOS X.
>
> _______________________________________________
> sc-dev mailing list
> sc-dev@create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-dev
>
>

_____ _ _ # > # __/\__ |___ | / / | __/\__ |___ | / / | # > # \ / / /____|
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____| | | # > #
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____| | | # > #
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____| | | # > #
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____| | | # > #
_____ _ _ # > # __/\__ |___ | / / | __/\__ |___ | / / | # > # \ / / /____|
_____ _ _ # > # __/\__ |___ | / / | __/\__ |___ | / / | # > # \ / / /____|
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____|
\/ /_/ |_|_| \/ /_/ |_|_| # > # # > # # > #1.7.100(today="7-11.00 > # \ /
/ /____| | | \ / / /____| | | # > # \ / / /____| | | \ / / /____| | | # >
> > Thank you for participating in 7-11 MAILING LIST > SUBSCRIBER
SATISFACTION SURVEY. > > > > >
###################################################### >
#1.7.100(today="7-11.00 071101010 07110101 0711.00100# > # # > # _____ _ _
_____ _ _ # > # __/\__ |___ | / / | __/\__ |___ | / / | # > # \ / / /____|
| | \ / / /____| | | # > # /_ _\ / /_____| | | /_ _\ / /_____| | | # > #
\/ /_/ |_|_| \/ /_/ |_|_| # > # # > # # > #1.7.100(today="7-11.00
071101010 07110101 0711.00100# > ########### 
http://mail.ljudmila.org/mailman/listinfo/7-11
_____ _ _ # > # __/\__ |___ | / / | __/\__ |___ | / / | # > # \ / 
/ /____|################################################################## 
>## ############      ########## # ### ### ##      ###### >
####  ######  #### #### ######  ##############  ###### >
# ####  ##### #### ########## ######  ###   ####### >
> 
> 


Back to nettime unstable digest vol 48