Module: dfmc-application Synopsis: general environment object information from the application. Author: Paul Howard Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND ///// GET-ENVIRONMENT-OBJECT-PRIMITIVE-NAME (Environment Protocol Method) // Constructs a string that can be used in the environment to // name the object. define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #t) end end method get-environment-object-primitive-name; define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #f) end end method get-environment-object-primitive-name; define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #f) end end method get-environment-object-primitive-name; define method number-object-to-string (application :: , obj :: , #key format :: false-or() = #f, prefix? :: = #t) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; let value = runtime-proxy-to-remote-value(application, proxy); let text = print-dylan-object(target, value, format: format); concatenate(if (prefix?) select (format) #"binary" => "#b"; #"octal" => "#o"; #"hex" => "#x"; otherwise => ""; end else "" end, text) end end method number-object-to-string; define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #f) end end method get-environment-object-primitive-name; define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #f) end end method get-environment-object-primitive-name; define method get-environment-object-primitive-name (application :: , obj :: ) => (name :: ) let target = application.application-target-app; with-debugger-transaction (target) let proxy = obj.application-object-proxy; application-proxy-primitive-name(application, proxy, decorate?: #f) end end method get-environment-object-primitive-name; ///// ENVIRONMENT-OBJECT-SOURCE (Environment Protocol Method) // It's up to the compiler to provide this. We just return #f in all // cases. define method environment-object-source (application :: , obj :: ) => (source :: false-or()) #f end method;