Displaying 7 results from an estimated 7 matches for "filefoo".
2007 Jul 18
1
passing a parameter to a file from command line
Hi,
I have a file fileFoo.R, say that contains these two lines, invoking
function foo that is specified in "foo_details.R":
source("foo_details.R")
foo(parameter1)
I want to specify and pass parameter1 in my command line when invoking R
in linux: R --no-save <fileFoo.R.
How can I do that?
A...
2012 Jun 19
2
[LLVMdev] object construction patterns and unique_ptr
...to query if they are valid or not. If they are not, there is a method to get the error_code and/or error string.
>
> I like this with some modifications.
>
>>>> 2) A variation on this is to have a new subclass of File called FileError. If the Reader cannot construct a real FileFoo object because of some error, it instead constructs a FileError object and returns that. The FileError object has methods to get the error_code and/or error string.
>
My intuition is the opposite here. If you add the error information to the lld::File base class then leads you to write the co...
2012 Jun 15
3
[LLVMdev] object construction patterns and unique_ptr
...od always returns a File object. But there is a method on File objects to query if they are valid or not. If they are not, there is a method to get the error_code and/or error string.
2) A variation on this is to have a new subclass of File called FileError. If the Reader cannot construct a real FileFoo object because of some error, it instead constructs a FileError object and returns that. The FileError object has methods to get the error_code and/or error string.
With both these ideas the Reader method is:
virtual std::unique_ptr<lld::File> readFile(StringRef path);
which is much e...
2012 Jun 18
0
[LLVMdev] object construction patterns and unique_ptr
...hod on File objects to query if they are valid or not. If they are not, there is a method to get the error_code and/or error string.
I like this with some modifications.
>>> 2) A variation on this is to have a new subclass of File called FileError. If the Reader cannot construct a real FileFoo object because of some error, it instead constructs a FileError object and returns that. The FileError object has methods to get the error_code and/or error string.
I dislike this variant because a FileError is not a File.
>>> With both these ideas the Reader method is:
>>>
>...
2012 Jun 18
6
[LLVMdev] object construction patterns and unique_ptr
...a File object. But there is a method on File objects to query if they are valid or not. If they are not, there is a method to get the error_code and/or error string.
>>
>> 2) A variation on this is to have a new subclass of File called FileError. If the Reader cannot construct a real FileFoo object because of some error, it instead constructs a FileError object and returns that. The FileError object has methods to get the error_code and/or error string.
>>
>> With both these ideas the Reader method is:
>>
>> virtual std::unique_ptr<lld::File> readFile...
2012 Jun 16
0
[LLVMdev] object construction patterns and unique_ptr
...returns a File object. But there is a method on File objects to query if they are valid or not. If they are not, there is a method to get the error_code and/or error string.
>
> 2) A variation on this is to have a new subclass of File called FileError. If the Reader cannot construct a real FileFoo object because of some error, it instead constructs a FileError object and returns that. The FileError object has methods to get the error_code and/or error string.
>
> With both these ideas the Reader method is:
>
> virtual std::unique_ptr<lld::File> readFile(StringRef path...
2012 Jun 19
0
[LLVMdev] object construction patterns and unique_ptr
...ject. But there is a
method on File objects to query if they are valid or not. If they are not,
there is a method to get the error_code and/or error string.
> >>
> >> 2) A variation on this is to have a new subclass of File called
FileError. If the Reader cannot construct a real FileFoo object because of
some error, it instead constructs a FileError object and returns that. The
FileError object has methods to get the error_code and/or error string.
> >>
> >> With both these ideas the Reader method is:
> >>
> >> virtual std::unique_ptr<lld:...