Name

as-prototype

Usage

builtin-function

Syntax

(as-prototype obj)

Description

Adds the contents of a hashtable, the values of static properties of a type or the instance properties of an object to a prototype hashtable.

user 1 > (as-prototype date-time:T)
it: #s( :max-value "9999-12-31 23:59:59"
        :min-value "0001-01-01"
        :now "2017-06-25 16:18:43"
        :today "2017-25-06"
        :utc-now "2017-06-25 14:18:43" )
user 2 > :d
#s( :type "Kiezel.Prototype"
    :type-specifier null
    :value #s( :max-value "9999-12-31 23:59:59"
               :min-value "0001-01-01"
               :now "2017-06-25 16:18:43"
               :today "2017-25-06"
               :utc-now "2017-06-25 14:18:43" ) )

user 2 > (as-prototype (date-time:now))
it: #s( :date "2017-25-06"
        :day 25
        :day-of-week Sunday
        :day-of-year 176
        :hour 16
        :kind Local
        :millisecond 204
        :minute 18
        :month 6
        :second 43
        :ticks 636340043232047580
        :time-of-day 16:18:43.2047580
        :year 2017 )
user 3 > :d
#s( :type "Kiezel.Prototype"
    :type-specifier null
    :value #s( :date "2017-25-06"
               :day 25
               :day-of-week Sunday
               :day-of-year 176
               :hour 16
               :kind Local
               :millisecond 204
               :minute 18
               :month 6
               :second 43
               :ticks 636340043232047580
               :time-of-day 16:18:43.2047580
               :year 2017 ) )